02 if语句
#python
x = float(input('请输入'))
if x>=60:
print('及格')
else:
print('不及格')
02 while语句
#python
x = int(input('请输入'))
i = 0
while i<x:
print(i, end=', ')
i += 1
if x>100: break #
02 if语句
#python
x = float(input('请输入'))
if x>=60:
print('及格')
else:
print('不及格')
02 while语句
#python
x = int(input('请输入'))
i = 0
while i<x:
print(i, end=', ')
i += 1
if x>100: break #
本文标题:[py.js]02流程控制
本文链接:https://www.haomeiwen.com/subject/xtnhzktx.html
网友评论