Commit 0ae0e129 by BellCodeEditor

save project

parent 84420809
a=int(input("请输入你的数学成绩:"))
aa=int(input("请输入你的语文成绩:"))
aaa=int(input("请输入你的英语成绩:"))
zf=a+aa+aaa
pj=(a+aa+aaa)/3
yysy=[a,aa,aaa]
MAX=max(yysy)
MIX=min(yysy)
PAI=sorted(yysy)
print(MAX,MIX,PAI)
\ No newline at end of file
a=int(input("请输入小明原来购买铅笔的数量"))
q=a*5+3
x=q//4
s=q%4
print("按照促销价格可以购买",x,"支铅笔,还剩余",s,"元")
\ No newline at end of file
try:
try:
age = int(input("你今年几岁了?"))
except:
print("要输入整数啊")
else:
if age < 16:
print("不能开电动车")
print("程序结束~~")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment