代码拉取完成,页面将自动刷新
#流程控制
# if...else ,if...elseif...else,while以及for
#age = int(input("请输入年龄:"))
# if age>= 18:
# print('成年')
# else:
# if age >= 12:
# print('少年')
# else:
# print('儿童')
#if elif else
# age = int(input("请输入年龄:"))
# if age >= 18:
# print('成年')
# elif age >= 12:
# print('少年')
# else:
# print('儿童')
# score = int(input('请输入你的成绩:'))
# if score >= 90 and <= 100:
# print('优秀')
# elif score >= 80 and score < 90:
# print('良好')
# elif score >= 70 and score < 80:
# print('中等')
# elif score >= 60 and score < 70:
# print('及格')
# else:
# print('不及格')
# if 0<= score <= 100:
# if score >= 90:
# print('优秀')
# elif score >= 80 and score < 90:
# print('良好')
# elif score >= 70 and score < 80:
# print('中等')
# elif score >= 60 and score < 70:
# print('及格')
# else:
# print('不及格')
# else:
# print('输入成绩不合法')
#pass
# if 0<= score <= 100:
# if score >= 90:
# print('优秀')
# elif score >= 80 and score < 90:
# print('良好')
# elif score >= 70 and score < 80:
# print('中等')
# elif score >= 60 and score < 70:
# pass
# else:
# print('不及格')
# else:
# print('输入成绩不合法')
# a = 50
# b = 10
# if a >= b:
# print(a)
# else:
# print(b)
# s = input('请输入:')
# print('ok' if s == 'yes' else s)
# print('hello world'*10)
# a = 1
# while a < 101:
# a += 1
# print('a =',a)
#for循环
# for i in range(1,101):
# print(i)
#
# for a in range(50):
# print(a)
# for b in range(0,101,2):
# print(b)
# sum = 0
# for i in range(1,101):
# sum = sum + 1
# print(sum)
# for i in range(2):
# print('===外层===')
# for j in range(5):
# print('====内层====')
# break:
#
# continue:
#作业
# year = int(input("请输入任意一个年份:"))
# if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
# print(year,'是闰年')
# else:
# print('平年')
# for i in range(1,10):
# for j in range(1,i+1):
# print(i,'*',j , '=',i*j,end = '\t')
# print()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。