随笔分类 -  Python

摘要:import sqlite3 import xlrd def read_excel(): c = [] # 打开文件 workbook = xlrd.open_workbook(r'F:/期中作业/dataWx_org.xlsx') # 获取所有sheet sheet_name = workbook.sheet_names()[0] sheet ... 阅读全文
posted @ 2017-05-26 11:24 网络优伶(徐子涵) 阅读(1090) 评论(0) 推荐(0)
摘要:准备工作:下载python,比如Anaconda3(64 bit),导入pygame游戏包 1.外星人设置,alien.py,代码: 2.游戏主程序,alien_invasion.py,代码: 3.设置子弹,bullet.py,代码: 4.设置Play按钮,button.py,代码: 5.设置游戏功 阅读全文
posted @ 2017-04-18 11:43 网络优伶(徐子涵) 阅读(27432) 评论(2) 推荐(0)