= 80:print(score)else:print("分数过低")# 03# rang(1,6), 不包含6# for i in range(1, 6):# print(i ** 2)# 04# while True:#..._python demo.py">
赞
踩
# coding=UTF-8
# 字体编码,coding必须在第一行
# 01
print("Hello World")
# 02
score = 77
if score >= 80:
print(score)
else:
print("分数过低")
# 03
# rang(1,6), 不包含6
# for i in range(1, 6):
# print(i ** 2)
# 04
# while True:
# i = input("请输入内容:")
# if i == "stop":
# break
# elif not i.isdigit():
# if i.isspace():
# print("不能输入空格")
# else:
# print("请输入数字")
#
# else:
# j = int(i)
# if j > 20:
# print("输入的数字太大了")
# elif j < 10:
# print("输入的数字太小了")
# else:
# print("输入正确")
# 05 循环增加
# i = 1
# while True:
# if i >= 10:
# print("大于10,退出")
# break
# else:
# i = i + 1
# print(i)
# print("+1中...")
# 06 默认浏览器打开网页
# url = "https://www.baidu.com/"
# import webbrowser
#
# webbrowser.open(url)
# True
# 0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。