Commit e20e93f9 by BellCodeEditor

auto save

parent dc70412a
i=input("请输入一个三位整数")
i=int(i)
a=i//100
d=i-a*100
b=d//10
c=d-b*10
print("百:",a,"十:",b,"个:",c)
import turtle
turtle.forward(200)
turtle.left(90)
turtle.forward(200)
turtle.left(90)
turtle.forward(200)
turtle.left(90)
turtle.forward(200)
turtle.left(90)
a=input("输入区号")
if a == "020":
print("广州")
if a == "021":
print("上海")
if a == "022":
print("天津")
if a == "023":
print("重庆")
if a == "024":
print("沈阳市")
if a == "025":
print("南京")
else:
print("没有该区号,请重新输入")
\ No newline at end of file
a=input("请输入一个总秒数")
a=int(a)
i=a//3600
d=a-i*3600
b=d//60
c=d-b*60
print(i," ",b," ",c)
\ No newline at end of file
import turtle
for i in range(4):
turtle.forward(180)
turtle.right(90)
i=input("请输入一个学生的成绩")
i=int(i)
if i>=0 and i<=100:
if i<60:
print("成绩为不合格")
if i>=60 and i<85:
print("成绩为良")
if i>85:
print("成绩为优")
else:
print("没有这个成绩,请重新输入")
\ No newline at end of file
i=input("请输入一段含有字母和数字的字符串")
a=[]
for i in a:
if
\ 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