Commit 5b161be9 by BellCodeEditor

auto save

parent 03ef9879
a=["a","b","c","d","e"]
i=0
j=len(a)-1
while True:
o=a[i]
a[i]=a[j]
a[j]=o
i=i+1
j=j-1
if j<(len(a)-1)//2:
break
print(a)
\ No newline at end of file
a=input("请输入压岁钱数")
c=int(a)//23
d=int(a)%23
print("可以购买"+str(c)+"本书,"+"剩余"+str(d)+"元")
\ No newline at end of file
import turtle
turtle.pensize(3)
turtle.forward(180)
turtle.circle(50,909450690)
turtle.forward(180)
turtle.circle(48,169570560)
turtle.forward(150)
turtle.circle(45,4957890)
turtle.forward(120)
turtle.done()
\ No newline at end of file
class Hero:
def __init__(self):
self.chang=3
self.kuan=4
class Fo(Hero):
def __init__(self,gao):
super().__init__()
self.gao=gao
def vo(self):
v=self.chang*self.kuan*self.gao
return v
s=Fo(6)
print(s.vo())
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