Commit 3d3e3eee by BellCodeEditor

auto save

parent 7eaed43a
Showing with 21 additions and 0 deletions
def price():
jiage = []
while True:
danjia = input('请输入价格:')
try:
#设置条件
if danjia == 'q':
break
else:
jiage.append(int(danjia)) #将单价添加进价格列表里
except:
input("请输入整数!")
return jiage
print(price())
\ No newline at end of file
import turtle
pen = turtle.Pen()
for i in range(6):
pen.left(60)
pen.forward(100)
\ 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