![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
技术爱好者Joker
技术爱好者
展开
-
python之2048小游戏
import random import sys import pygame from pygame.locals import * # pixel PIXEL = 150 SCORE_PIXEL = 100 SIZE = 4 class Map: def __init__(self, size): self.size = size self....原创 2019-10-14 14:19:19 · 195 阅读 · 0 评论 -
python之tkinter界面编程
Button import tkinter win = tkinter.Tk() # 设置标题 win.title("窗口") # 设置大小和位置 win.geometry("400x400+200+50") def func(): print('one') button1 = tkinter.Button(win, text="one", command=func, widt...原创 2019-10-11 16:52:31 · 755 阅读 · 0 评论