摘要:
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() ... 阅读全文
摘要:
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] != '-': ... 阅读全文
摘要:
def isPhoneNumber(text): #固定电话 if len(text) != 13: return False # 位数不够 for i in range(0, 4): if not text[i].isdecimal(): ... 阅读全文