标签:python基础 inpu print == while循环 三次 bsp and nbsp
count = 1 while count< 11: if count == 7: count+=1 continue print(count) count+=1
counts = 1 num = 0 while counts <101: num +=counts counts+=1 print(num)
counte = 1 while counte < 101: if counte % 2 == 1: print(counte) counte+=1
counte = 1 while counte < 101: if counte % 2 != 1: print(counte) counte+=1
counte = 1 num = 0 num1 = 0 while counte < 100: if counte % 2 != 1: num += -counte else: num1 += counte counte+=1 print(num+num1)
count = 0 while count<3: count +=1 username = input("username:") password = input("password:") if username == ‘alex‘ and password == ‘123456‘: print(‘登陆成功!‘) break else: print(‘请重试!‘)
标签:python基础 inpu print == while循环 三次 bsp and nbsp
原文地址:https://www.cnblogs.com/guobaoyuan/p/9011520.html