随笔分类 - 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 ...
阅读全文
摘要:准备工作:下载python,比如Anaconda3(64 bit),导入pygame游戏包 1.外星人设置,alien.py,代码: 2.游戏主程序,alien_invasion.py,代码: 3.设置子弹,bullet.py,代码: 4.设置Play按钮,button.py,代码: 5.设置游戏功
阅读全文

浙公网安备 33010602011771号