基本信息
文件名称:数字素养与人工智能通识实验教程 教案 第1章 Python程序设计实践-代码.docx
文件大小:33.42 KB
总页数:20 页
更新时间:2025-09-02
总字数:约1.53万字
文档摘要
#program1-1.py
a=int(input(请输入一个整数:))
ifa%3==0anda%2==0:
print(Yes)
else:
print(No)
#program1-2.py
PM=eval(input(请输入PM2.5的值:))
if0=PM35:
print(优)
elif35=PM=75:
print(良)
else:
print(污染)
#program1-3.py
x=int(input(请输入分数:))
ifx=90:
grade=A
elifx=80:
grade=B
elifx