同步操作将从 源宝网络/master_python 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# ifscore = 88if score>=90 and score<=100 :print("优")elif score<=90 and score>=80 : # else ifprint("中")else :print("差")# whilecount = 0while count<5 :# continue中止本次循环# 下面语句会导致永远循环# if count == 1:# continueprint('hello')count = count + 1# break中止循环if count==3 :breakelse :print('exit while')# forlst = ['baidu', 'alibaba', 'tencent']for value in lst :print(value)for i in range(5) :print(i)for i in range(7,0,-1):print(i)# 习题 1score = 55if score >= 90 and score <= 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("不及格")# 习题2for i in range(7,0,-1) :star = ''for j in range(i) :star = star + '*'print(star)for i in range(7,0,-1) :star = '*'print(star*i)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。