Condition
if True:
print(True)
elif False:
print(False)
else:
print(None)
For loop
for fruit in ['apple', 'banana']:
print(fruit)
for i in range(10):
print(i) # 0 ... 9
While loop
while True:
print('infinite loop')
continue
break
网友评论