标签:led lse ase ... ESS while failed and login
i=1
while(i<11):
if(i!=7):
print(i,end=‘ ‘)
i=i+1
#else:
#print(i,end=‘ ‘)
#i=i+1
print()
i=1
total=0
while(i<101):
total=total+i
i=i+1
print(‘total:‘,total)
i=1
total=0
while(i<100):
total=total+i
i=i+2
print(‘total:‘,total)
i=2
total=0
while(i<101):
total=total+i
i=i+2
print(‘total:‘,total)
i=1
total=0
while(i<100):
if(i%2==1):
total=total+i
else:
total=total-i
i=i+1
print()
print(‘total:‘,total)
name=‘luxiao‘
password=‘123‘
i=0
while(i<3):
in_name=input(‘Enter your name:‘)
in_pwd=input(‘Enter your password:‘)
if(in_name==name and in_pwd==password):
print(‘login success!‘)
break
else:
print(‘login fail! Please try again!‘)
i=i+1
if(i==3):
print(‘login failed‘)
标签:led lse ase ... ESS while failed and login
原文地址:https://www.cnblogs.com/gldlife/p/9161569.html