IF语句
if my_age >= 20:
pass
elif my_age <= 10:
pass
else:
pass
判断语句,首先判断if 后面的条件是否满足,若否,再判断elif 后面的条件是否满足,若再否,最后输出else后面的语句。
循环语句
for i in range (5):
pass
while i in range (5):
pass
if my_age >= 20:
pass
elif my_age <= 10:
pass
else:
pass
判断语句,首先判断if 后面的条件是否满足,若否,再判断elif 后面的条件是否满足,若再否,最后输出else后面的语句。
for i in range (5):
pass
while i in range (5):
pass
本文标题:语句
本文链接:https://www.haomeiwen.com/subject/lwwkfttx.html
网友评论