Commit 34d70462 by BellCodeEditor

save project

parent 543e4de3
Showing with 25 additions and 8 deletions
class Hero():
def __init__(self,name,hp,attack):
self.level = 1
self.name1 = name
self.hp1 = hp
self.attack1 = attack
def upgrade(self):
yase.hp1 = yase.hp1+50
yase.level = yase.level+1
yase.level = yase.hp1+50
yase = Hero("yase",100,200)
yase.upgrade()
print(yase.hp1)
print(yase.level)
print(yase.level)
houyi = hero("honyi",150,200)
print(houyi.hp1)
\ No newline at end of file
import tkinter
# 1、
from tkinter import *
alist = ["星期六下午打篮球", "星期天下午和小美一起看电影",
"12月18日给蒂法过生日","12.24送妈妈圣诞礼物"]
class Note():
class Hero():
def __init__(self):
self.root = tkinter.Tk()
self.
self.root.geometry('300x340+1000+200')
self.root.title("我的便签-待办事项")
self.root.resizable(width=True, height=False) # True可以拉伸,False不能拉伸
......
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