摘要: name: jack name:jack age:20 home:南京 PS:字符串是%s;整数是%d;浮点数是%f 阅读全文
posted @ 2019-03-13 20:38 jackdu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: name = 10count=0for i in range(10): if count< 3: nan = int(input("age:")) if name == nan: print("恭喜") break # 跳出整个循环 elif name > nan: print("小了") else 阅读全文
posted @ 2019-03-13 20:09 jackdu 阅读(143) 评论(1) 推荐(0) 编辑
摘要: count=1for i in range(10): print("1.北京\t2.江苏\t3.浙江\t请输入1、2、3、exit") one=input() count=count+1 if one=='1': count=count+1 print("1.东城\t2.朝阳\t3.昌平\t请输入1 阅读全文
posted @ 2019-03-13 20:08 jackdu 阅读(215) 评论(0) 推荐(0) 编辑
摘要: username=input("username:")password=input("password:")name,passwd='ducai','123'if name==username and passwd==password: print("Welcome!")else: print("w 阅读全文
posted @ 2019-03-13 20:04 jackdu 阅读(450) 评论(0) 推荐(0) 编辑