Python-使用tkinter实现的摇骰子小游戏
贴吧看到的一个求助题,大致需求是:3个人摇骰子,每人摇3次,点数之和最大的获胜,支持玩家名称输入。我觉得这个题目挺有意思的,做了个界面程序,欢迎大家交流指正~ 很多人学习python,不知道从何学起。 很多人学习python,掌握了基本语法过后,不知道在哪里寻找案例上手。 很多已经做案例的人,却不知道如何去学习更加高深的知识。 那么针对这三类人,我给大家提供一个好的学习平台,免费领取视频教程,电子书籍,以及课程的源代码! QQ群:1097524789 1 #!usr/bin/env python 2 # -*- coding: utf-8 -*- 3 4 # author: *** 5 # date: 2020/06/10 6 7 from tkinter import * 8 import tkinter as tk 9 import random 10 import time 11 from threading import Thread 12 13 root = Tk() 14 root.geometry( '620x660') 15 root.title( '摇骰子') 16 sigpic = PhotoImage(file= 'signature.png') 17 shake_cup = PhotoImage(file= 'touzi/box.png') 18 crown