Commit dcf4b9f5 by BellCodeEditor

save project

parent 22354288
Showing with 31 additions and 0 deletions
# while 1:
# a=int(input('请输入成绩:'))
# if a<60:
# print('成绩不合格')
# elif a>=60 and a<85:
# print('成绩良')
# else:
# print('成绩优')
a=input('瞎按:')
b=[]
for i in a:
if i not in '1234567890':
b.append(i)
print(b)
class sword:
def __init__(self,name,damage):
self.level=1
self.name=name
self.damage=damage
def up(self):
self.level=self.level+1
self.damage=self.damage+114
axe=sword('axe',200)
axe.up()
print('诅咒之刃的伤害是',axe.damage)
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