2017/02/06

python

import os print(os.getcwd()) =>install directory! import math dir(math) =>to see that in math module from math import ceil print ceil(4.5) =>not necessary to use math. import tkinter import tkinter.filedialog tk = tkinter.Tk() tk.withdraw()        # 小ウィンドウを表示しないようにする。 args = { “initialdir” : “c:/”, “filetypes” : [(“テキストファイル”, “*.txt”)], “title” : “テスト” } print (tkinter.filedialog.askopenfilename(**args)) input(“press enter”) =>open the file myword=u"あいうえお” =>japanese words is unicode...