city = input("请输入城市名:")
AQI = int(input("请输入空气质量指数AQI的值:"))
① AQI != -1:
if ②:
print(city,"的空气质量优良。")
③:
print(city,"的空气质量有污染。")
city=input("请输入城市名:")
AQI=④(input("请输入空气质量指数AQI的值:"))
import math # 导入数学模块
def hl(a, b, c): # 定义求三角形面积的函数
p = ①
s = math.sqrt(②) # sqrt用于计算算术平方根
return ③ # 返回面积的值
a, b, c = 3, 4, 5 # 边长依次赋值
print("此三角形的面积S为:", hl(a, b, c))
def shengxiao(year):
zodiac = ["鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊", "猴", "鸡", "狗", "猪"]
index = (year-1900) % 12
return zodiac[①]
myyear = int(input("请输入出生年份,输入0结束:"))
while myyear != ②:
print("你的生肖是:",③)