摘要: wheil循环 登录密码用户只能输入3次 counter = 0 "定义开始次数"_user = "wl"_password = "aaa123" while counter <3: username = input("Username:") password = input("password:" 阅读全文
posted @ 2018-08-09 12:43 小飞侠琅 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 【增删改查】【列表】 name="a1"a= ['a1','a2','a3','a4','a5'] #取值范围print(a[0:]) #从0取到最后print(a[0:-1]) #从左到右取 倒数第一个print(a[1:]) #从1取到最后范围最后值print(a[1:-1:2]) #从左到右取 阅读全文
posted @ 2018-08-09 12:41 小飞侠琅 阅读(117) 评论(0) 推荐(0) 编辑