Commit f1f4a7bc by BellCodeEditor

auto save

parent 19291017
Showing with 11 additions and 12 deletions
import turtle
# pen=turtle.Pen()
# pen.write("jyu\nyy",font=("MS Gothsic",50,"normal"))
p=turtle.Pen()
p.color("red")
p.left(45)
p.forward(100)
p.circle(50,180)
p.right(90)
p.circle(50,180)
p.forward(100)
turtle.done()
c=int(input("请输入长度:"))
b=input("请输入单位:")
if b=="英寸" or b=="in":
a=c/2.54
print(c,"英寸","是",a,"厘米")
elif b=="厘米" or b=="cm":
a=c*2.54
print(c,"厘米","是",a,"英寸")
else:
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