📜  tkinter 彩票应用程序 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:38.337000             🧑  作者: Mango

代码示例1
#coding=utf-8import sysif sys.version_info [0] == 2: import tkinter from tkinter import *else: import tkinter as tkinter from tkinter import *import randomis_run=falsedef lottery_whirl (data, i, number): global is_run if i == 0: j=0 else: j=i%8 data [j-1] ["bg"]="#cccccc" data [j] ["bg"]="#00cd00" wait=[a for a in range (100, 300, 10)] + [b for b in range (300, 600, 300 //(number-28))] + \ [c for c in range (600, 1200, 120)] + [d for d in range (1200, 1800, 200)] if i