Commit 1ed0f12d by BellCodeEditor

save project

parent 45d54b4d
Showing with 9 additions and 14 deletions
total = []
while True:
unint = input('请输入(q退出)')
if unint == 'q':
break
else:
try:
unit=int(unit)
except:
print('请输入数字')
else:
total.append(unit)
print(total)
\ No newline at end of file
import turtle
pen1=turtle.Pen()
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
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