摘要: from Tkinter import * root = Tk() mylabel = Label(root, text = "I am a label widget") mybutton = Button(root,text = "I am a button" ) mylabel.pack() mybutton.pack() root.mainloop() ... 阅读全文
posted @ 2015-05-14 20:06 司徒无名 阅读(143) 评论(0) 推荐(0) 编辑
摘要: def isPhoneNumber(text): #固定电话 if len(text) != 13: return False # 位数不够 for i in range(0, 4): if not text[i].isdecimal(): return False # 区号不对 if text[4] != '-': ... 阅读全文
posted @ 2015-05-14 13:26 司徒无名 阅读(150) 评论(0) 推荐(0) 编辑
摘要: def isPhoneNumber(text): #固定电话 if len(text) != 13: return False # 位数不够 for i in range(0, 4): if not text[i].isdecimal(): ... 阅读全文
posted @ 2015-05-14 12:55 司徒无名 阅读(555) 评论(0) 推荐(0) 编辑