摘要: for循环: for i in range(3) print("循环三次,i值分别打印为0,1,2") 1 name = "li" 2 password = '000' 3 for i in range(3): 4 user = input("username:") 5 pwd = input("p 阅读全文
posted @ 2020-05-30 12:50 xinZhiZhu 阅读(235) 评论(0) 推荐(0) 编辑
摘要: python中变量名: 在python中所有变量都是可变的,所以用全部大写的变量名来代表此变量位常量。 变量的赋值: 1 name=xin 2 name2=name 3 print(name2,name) 4 name=li 5 print("what is the value of name2?" 阅读全文
posted @ 2020-05-27 21:59 xinZhiZhu 阅读(101) 评论(0) 推荐(0) 编辑