Lv.1
退猫。。。
签名:退猫。。。
在 招Python徒弟啦! 中回复
import guimaker
import random
a = 0
x = 0
y = 0
g = guimaker.GUI(width=500, height=500, title="恶魔妈妈")
def d():
pass
def f():
global a
global x
global y
a += 1
x =random.randint(1,500)
y = random.randint(1,500)
g.button(text=a, command = d ,width=5, height=5, x=x, y=y)
g.button(text="按我", command=f, width=100, height=100, x=0, y=0)
g.run()
2020-05-23T13:49:56 点赞:0