Commit f1f4a7bc by BellCodeEditor

auto save

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