• 大小: 49.02M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-30
  • 语言: Python
  • 标签: 抽奖  源码  年会  

资源简介


资源截图

代码片段和文件信息

#coding:utf-8

import sys
import xlrd
import pygame
import random
from pygame.locals import *

fullScreen = True
mode = 0
mouse_scan = [(1031 498 116 89) (1031 436 91 68)]
pos_scan = [(683 141 683630) (650 130 650 540)]


def get_name_list_from_excel(file_name):
    ‘‘‘“解析 人员.xlsx 文件,得到人员名单列表“‘‘‘
    name_list = []
    excelFile = xlrd.open_workbook(file_name)
    sheet = excelFile.sheet_by_name(‘Sheet1‘)
    print sheet.name sheet.nrows sheet.ncols
    job_num  = sheet.cell(0 0).value.encode(‘utf-8‘)
    job_name = sheet.cell(0 1).value.encode(‘utf-8‘)
    for row in range(1 sheet.nrows):
        job_num  = sheet.cell(row 0).value.encode(‘utf-8‘)
        job_name = sheet.cell(row 1).value.encode(‘utf-8‘)
        #print job_num job_name
        name_list.append((job_n

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-01-26 06:41  Annual-meeting-lottery-master\
     文件          66  2018-01-26 06:41  Annual-meeting-lottery-master\.gitattributes
     文件        1149  2018-01-26 06:41  Annual-meeting-lottery-master\.gitignore
     文件      870044  2018-01-26 06:41  Annual-meeting-lottery-master\9224.wav
     文件        4097  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_awards_main.py
     目录           0  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\
     文件      870044  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\9224.wav
     文件    24789931  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\Annual_awards_main.exe
     文件      291174  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\bg.png
     文件     1406696  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\bg_1366x768.png
     文件        7945  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\gc_cz.png
     文件       14793  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\name_file.xlsx
     文件     9753284  2018-01-26 06:41  Annual-meeting-lottery-master\Annual_meeting_lottery\simhei.ttf
     文件         114  2018-01-26 06:41  Annual-meeting-lottery-master\README.md
     文件    11210316  2018-01-26 06:41  Annual-meeting-lottery-master\backup.jpg
     文件      291174  2018-01-26 06:41  Annual-meeting-lottery-master\bg.png
     文件     1406696  2018-01-26 06:41  Annual-meeting-lottery-master\bg_1366x768.png
     文件      347321  2018-01-26 06:41  Annual-meeting-lottery-master\bg_1536x768.jpg
     文件         278  2018-01-26 06:41  Annual-meeting-lottery-master\convert_to_exe.py
     文件        7945  2018-01-26 06:41  Annual-meeting-lottery-master\gc_cz.png
     文件     9753284  2018-01-26 06:41  Annual-meeting-lottery-master\simhei.ttf
     文件      199092  2018-01-26 06:41  Annual-meeting-lottery-master\start.png
     文件      202631  2018-01-26 06:41  Annual-meeting-lottery-master\stop.png

评论

共有 条评论