跳转语句
# break 直接结束循环
# continue 跳过后面语句继续循环
# pass 占位符



total = 0
for count in range(2,101,2):
total = count + total
print("偶数总和:", total)
i = 1
while i < 6:
j = 0
while j < i:
print("*",end="")
j += 1
print()
i += 1




for letter in "Python":
print(letter)
f = ["apple","banana",2,["apple_1"]]
for i in f:
print(i)
for i in range(5):
print("我在学习for循环")
total = 0
for count in range(101):
total = count + total
print("总和:", total)
total = 0
for count in range(1,101):
print(count)
total = count + total
print("总和:", total)
total = 0
for count in range(2,101,2):
total = count + total
print("偶数总和:", total)
target = 9
for cup in range(1,target):
input()
print(f"喝了第{cup}杯水")
print("喝水完成")
for i in range(1,10):
for j in range(1,i+1):
print(f"{j}x{i}={i*j}",end=" ")
print()
size = int(input("请输入棋盘的大小:"))
for i in range(1, size + 1):
for j in range(1, size + 1):
if i == 1 and j == 1:
print("┏", end='')
elif i == 1 and j == size:
print("┓", end='')
elif i == size and j == 1:
print("┗", end='')
elif i == size and j == size:
print("┛", end='')
elif j == 1:
print("┠", end='')
elif i == size:
print("┷", end='')
elif j == size:
print("┨", end='')
elif i == 1:
print("┯", end='')
else:
print("┼", end='')
print('')