Commit 3388cbaa by BellCodeEditor

save project

parent 8b72b5e0
Showing with 24 additions and 12 deletions
def add (x,y):
z = x + y
print("z的值为:",z)
#return z
\ No newline at end of file
def add(x,y):
w=x+y
print(w)
#return (w)
add(8,7)
\ No newline at end of file
z=[]
while True:
a=int(input("输入价格"))
def new():
z=[]
while True:
a=input("输入价格:")
if a=="stop":
break
else:
try:
a1=int(a)
except:
print("输入数字")
print("请输入数字")
else:
z.append(a1)
print(z)
new()
\ No newline at end of file
return(z)
h=new()
print(z)
\ No newline at end of file
import turtle
pen=turtle.Pen()
d=1
for i in range(300):
pen.forward(d)
pen.left(91)
d=d+1
pen.hideturtle()
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