Highlight code
linhtv
5 Posts
Quote from linhtv on 31/08/2017, 3:53 chiều[cc lang="python" escaped="true" width="100%" theme="default"]
# Default theme
Print ("Hello \n")
import numpy as np
x = np.array([[1, 2, 3], [4, 5, 6],[7, 8, 9]], np.int32)
#np.savetxt('c:/test.txt', x)
#np.savetxt("test2.txt", x, fmt="%2.1f", delimiter=' ', newline='\n', header='Header', footer='Footer', comments='# ')
np.savetxt("test3.txt", x, fmt="%04d", delimiter=" - ", newline="\t")
[/cc]
[cc lang="python" escaped="true" width="100%" theme="default"]
# Default theme
Print ("Hello \n")
import numpy as np
x = np.array([[1, 2, 3], [4, 5, 6],[7, 8, 9]], np.int32)
#np.savetxt('c:/test.txt', x)
#np.savetxt("test2.txt", x, fmt="%2.1f", delimiter=' ', newline='\n', header='Header', footer='Footer', comments='# ')
np.savetxt("test3.txt", x, fmt="%04d", delimiter=" - ", newline="\t")
[/cc]
linhtv
5 Posts
linhtv
5 Posts
Quote from linhtv on 13/09/2017, 1:25 chiều
<script src="https://ideone.com/e.js/6MgrGS" type="text/javascript" ></script>
<script src="https://ideone.com/e.js/6MgrGS" type="text/javascript" ></script>
