搜索结果
查询Tags标签: 自编,共有 3条记录-
Python自编工具函数
import pandas as pddef xlsx_to_csv(filepath, chinese=False):将excel xlsx文件转化为csv文件fileName = filepath.rsplit(".", 1)[0]outName = fileName + .csvfile = pd.read_excel(filepath)print(file.head())if chinese:file.to_csv(outName, encoding=u…
2021/7/10 20:35:55 人评论 次浏览 -
Python自编工具函数
import pandas as pddef xlsx_to_csv(filepath, chinese=False):将excel xlsx文件转化为csv文件fileName = filepath.rsplit(".", 1)[0]outName = fileName + .csvfile = pd.read_excel(filepath)print(file.head())if chinese:file.to_csv(outName, encoding=u…
2021/7/10 20:35:55 人评论 次浏览 -
python3 pygame的发射子弹自编程序
这是主程序1.py #1.py主程序 import sys import pygame from settings import Settings from ship import Ship from gamefunctions import update_screen from bullet import Bullet from gamefunctions import check_events from pygame.sprite import Group def run_ga…
2021/4/11 20:26:25 人评论 次浏览