随笔分类 - Python杂记
摘要:定义break变量在最里层修改 break_fllag为True x='Hello {renming},您最喜欢在{nali},您的爱好是{shiqing} ' break_flag=False while not break_flag: name=input('你好,请问如何称呼您?:') if
阅读全文
摘要:数据类型 string[:None] 等于 string[:] python技巧 利用字典 调用函数 def test1(): print 'test1' def test2(): print 'test2' CMDs={'t1':test1,'t2':test2} for key in CMDs.
阅读全文