1.打印D盘 目录:
import os
newpath='D:\\'
os.listdir("D:\\")
for name in os.listdir(newpath):
print(newpath+name)
2.第一个python窗口
import Tkinter
from Tkinter import *
#top = Tkinter.Tk()
widget=Label(None,text='this is myfirst GUI!!')
widget.pack(expand=YES,fill=BOTH)
widget.mainloop()