Commit 5f1ebb65 by BellCodeEditor

save project

parent c8c9c867
def sum(n):
cnt=0
for i in range(1,n+1,1):
cnt+=i
return cnt
a=int(input("数"))
print(sum(a))
\ No newline at end of file
count=0
while count<9:
count+=1
print(count)
\ No newline at end of file
i=2
sum=0
while i<=100:
if i%2==0:
sum+=i
else:
sum-=i
i+=1
print('sum:',sum)
\ No newline at end of file
import turtle
pen=turtle.Pen()
size=turtle.textinput("提示","大小")
size=int(size)
pen.circle(size)
pen.circle(size,360,3)
pen.circle(size,60)
pen.circle(size,360,3)
turtle.done()
\ No newline at end of file
help=input('需要or不')
if help='需要':
choice=input('1,2,3')
if choice==1:
print('取款')
elif choice==2:
print('1:51.3')
money=input('多少')
print('好')
print('那么')
else:
print('请')
else:
print('好')
\ No newline at end of file
money=80
if money<=500:
print("穷人")
if money<=100:
print("称号")
else:
print("加薪")
if 500<money<1000:
print("温饱")
else:
print("危机")
if money<=20000:
print("有钱")
else:
print("来自")
print("结束")
\ No newline at end of file
import tuetle
t=turtle.Pen()
for i in range(4):
t.forward(100)
t.left(90)
\ No newline at end of file
s=x+y
return s
\ No newline at end of file
s=x+y
if a>b:
return a
else:
return b
\ 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