2017年10月12日

摘要: #乘法口诀 #python3 阅读全文

posted @ 2017-10-12 14:57 Anytao911 阅读(73) 评论(0) 推荐(0)

摘要: #1加到100的和 直接是结果n =1sum=0while True: sum += n if n == 100: break n += 1 print(sum)答案 5050#或这是1加到100的和 有过程n =1sum=0while True: sum += n print(sum) if n 阅读全文

posted @ 2017-10-12 11:08 Anytao911 阅读(312) 评论(0) 推荐(0)

摘要: #continue是跳出当前的循环 #1234568910 阅读全文

posted @ 2017-10-12 10:17 Anytao911 阅读(148) 评论(0) 推荐(0)

摘要: #适用python2.7#coding:utf-8 user = raw_input('username:')if user == "nimei": print("超级会员")elif user=="nidaye": print("VIP会员")else: print("大众会员")#答案只出来一种 阅读全文

posted @ 2017-10-12 10:06 Anytao911 阅读(124) 评论(0) 推荐(0)

摘要: #适用python2.7 用python3 把raw去掉#coding:utf-8 user = raw_input('username:')pwd = raw_input('password:')if user == "nimei" and pwd == "123": print("输入正确")e 阅读全文

posted @ 2017-10-12 10:04 Anytao911 阅读(99) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3