Commit 85ec57d8 by BellCodeEditor

save project

parent d60cf62c
Showing with 8 additions and 3 deletions
with open(r"C:\Users\mk11\Desktop\a.txt",'w',encoding = 'utf-8') as file: class Hero:
file.writelines('锦瑟\n[唐] 李商隐\n锦瑟无端五十弦,\n一弦一柱思华年。\n庄生晓梦迷蝴蝶,\n望帝春心托杜鹃。\n沧海月明珠有泪,\n蓝田玉暖玉生烟。\n此情可待成追忆,\n只是当时已惘然。') def __init__(self):
\ No newline at end of file self.lv = 1
self.hp = 200
self.atak = 20
yase = Hero()
print(yase.hp)
\ 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