Commit a272e9c0 by BellCodeEditor

save project

parent 2d73931d
Showing with 18 additions and 10 deletions
class Hero:
def __init__(self,name,level,hp,sttack,):
self.name=name
self.level=level
self.hp=hp
self.sttack=sttack
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+100
self.sttack=self.sttack+200
yase=Hero("亚瑟",1,100,10,)
yase.upgrade()
print(yase.level)
print(yase.hp)
print(yase.sttack)
\ No newline at end of file
import random import turtle
\ No newline at end of file
# 私钥
key = "abcdefgh使用编程实现位移替换加密,制作密码机关真是太好玩了哈哈!"
# 要加密语句
message = "诺依,周末一起去看动漫展吧!"
# 请使用私钥key,对message进行加密
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