Commit 95523ed4 by BellCodeEditor

auto save

parent b5c6bbbe
Showing with 33 additions and 0 deletions
class Student():
def __init__(self,name,score):
self.name = name
self.age = score
def print_info(self):
if self.score>90:
print("你的等级为:优秀")
elif self.score>80:
print("你的等级为:良好")
elif self.score>70:
print("你的等级为:中等")
elif self.score>60:
print("你的等级为:合格")
else:
print("你的等级为:不合格")
s1 = Student("wa",52)
s1.print_info()
if player==computer:
print("平局")
elif player=="石头"and computer=="剪刀":
print("恭喜,你赢了")
elif player=="剪刀"and computer=="布"
print("恭喜,你赢了)
elif player==""and computer=="石头":
print("恭喜你,你赢了")
else:
print("很遗憾,你输了")
\ 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