1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| print(type(1))
print(' 안녕 '.strip())
print(len('안녕'))
print(type(str(1)))
import sys sys.stdout = open('/txt.txt', 'w') print('안녕하세요요') print('반갑습니다') sys.stdout.close()
text_file = open("output.txt", "w") text_file.write("%s" % '안녕하세요를레이') text_file.close()
import numpy as np np.ones((10,10)) np.zeros((10,10))
np.invert(np.ones((10,10)))
np.ones((10,10)).shape
np.ones((10,10)).sum()
(np.ones((10,10)) + np.ones((10,10))).sum()
(np.ones((10,10)) * np.zeros((10,10))).sum()
import time time.time() str(round(time.time()))
from PIL import Image image image.save('imageOutput.bmp','BMP')
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
|