Commit f5ec5079 by BellCodeEditor

save project

parent 020c1999
Showing with 17 additions and 12 deletions
"""
请使用turtle模块画出五角星 def new_input():
""" total=[]
pen=turtle.Pen() while True:
for i in range(50) unit=input("价格是:(输入q退出)")
pen.forward(1000) if unit=='q':
pen.right(144) break
pen.hideturtle() else:
turtle.done() try:
unit=int(unit)
except:
\ No newline at end of file print("请重新输入价格")
else:
total.append(unit)
print(total)
new_input()
\ 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