while True:
print(‘狼的诱惑‘)
print(‘womenbuuyiyang‘)
count = 1
flag = True
while flag:
print(count)
count = count + 1
if count == 101:
flag = False
count = 1
while count < 101:
print(count)
count += 1
s = 0
count = 1
while count < 101:
s= s+count
count += 1
print(s)
count = 2
while 1:
print(count)
count += 2
if count == 102:
break
count = 1
while count < 101:
if count%2==0:
print(count)
count +=1
‘‘‘
coutinue:退出本次循环,继续下一次循环‘‘‘
while count < 5:
print(count)
if count ==2:
brecount = 1
ak
count +=1
else:
print(666)
name = input(‘请输入的姓名:‘)
age =input(‘请输入的年龄:‘)
job = input(‘请输入你的工作:‘)
hobby = input(‘请输入你的爱好:‘)
msg = ‘‘‘----------info of %s---------
Mame :%s
Age :%d
Job :%s
Hobbies :%s
-------------------end----------------‘‘‘
%(name,name,int(age),job,hobby)
print(msg)
原文:https://www.cnblogs.com/Tiramisu-SX/p/12353715.html