Commit f42f877c by BellCodeEditor

save project

parent ac3899c2
Showing with 16 additions and 14 deletions
import random
key ="askjdhfkasdhfkjagsdhfgajsdgfjhasgdjfkasdkjfgaskjdhfkje"
message = "诺伊,周末一起去看漫展!"
text = ""
for i in message:
a = i
b = random.choice(key)
c = random.choice(key)
d = a+b+c
text = text +d
print(text)
\ No newline at end of file
class Hero: goods = {"可口可乐":3,"旺仔牛奶":4,"农夫山泉":1,"辣条":3,"巴西烤肉":2,"果冻":4,"乐事":5}
def __init__(self,name,hp,attack): goods = pop("农夫山泉")
self.level=1 print = goods
self. hp=hp
self.attack=attack
yase=Hero("yase",300,20)
def upgrade():
yase.level=yase.level+1
yase.hp=yase.hp+50
yase.attack=yase.attack+4
upgrade()
upgrade()
print(yase.level,yase.hp,yase.attack)
\ 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