python学习20200509while循环语句
2021-01-25 22:13
标签:bsp end 学习 换行 strong bre 语句 python nbsp python学习20200509while循环语句 标签:bsp end 学习 换行 strong bre 语句 python nbsp 原文地址:https://www.cnblogs.com/wangyunpeng888888/p/12859304.html
guss_age = int(input("请输入您猜测的年龄:"))
while guss_age !=age:
if guss_age > age:
print("您猜大了:请重试!")
else:
print("您猜小了:请重试!")
guss_age = int(input("请输入您猜测的年龄:"))
while num print(num)
num = num +1
break
while num
if num == 3:
continue
print(num)
4
5
6
7
8
9
10
11
num2 = 0
while num1 print(num1,end="_")
num2 = 0
while num2 print(num2,end="-")
num2+=1
num1+=1
print(end = "\n") #等价于print()
1_0-1-2-3-4-5-6-7-
2_0-1-2-3-4-5-6-7-
3_0-1-2-3-4-5-6-7-
4_0-1-2-3-4-5-6-7-
5_0-1-2-3-4-5-6-7-
文章标题:python学习20200509while循环语句
文章链接:http://soscw.com/index.php/essay/46981.html