摘要: # Author:leon production_list = [ ('iphone',5800), ('mac pro', 9800), ('bike', 800), ('watch', 10600), ('coffee', 31), ('alex python', 120) ] shopping_list=[] ... 阅读全文
posted @ 2017-09-18 12:38 leon-zyl 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #Author:zyl age_of_oldboy = 56 count = 0 while count age_of_oldboy : print("think smaller") else: print("think bigger!") count +=1 if count ==3: countine_confi... 阅读全文
posted @ 2017-09-18 12:33 leon-zyl 阅读(148) 评论(0) 推荐(0) 编辑
摘要: for i in range(10): print("----------",i) for j in range(10): print("world",j) if j> 5: break 阅读全文
posted @ 2017-09-18 12:27 leon-zyl 阅读(114) 评论(0) 推荐(0) 编辑
摘要: # Author:zyl _username = 'zyl' _password = 'zyl123' username = input("username:") password = input("password:") print(username, password) if _username == username and _password == password: prin... 阅读全文
posted @ 2017-09-18 11:37 leon-zyl 阅读(113) 评论(0) 推荐(0) 编辑