HỌC PYTHON

test code highlight

1
2
3
4
5
6
7
    # 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")
Facebook Comments
Bình luận bài viết

Phản hồi bình luận

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

To Top