随笔分类 -  python

摘要: 阅读全文
posted @ 2021-01-25 16:06 wing-小 阅读(95) 评论(0) 推荐(0)
摘要:from openpyxl import load_workbookfrom openpyxl import Workbookfrom openpyxl.chart import BarChart, Reference, Serieswb = load_workbook('e:\\a\\sample 阅读全文
posted @ 2020-03-18 19:45 wing-小 阅读(920) 评论(0) 推荐(0)
摘要:#coding=utf-8import requests,urllibfrom bs4 import BeautifulSoupimport osresult=urllib.request.urlopen("http://www.kugou.com")soup=BeautifulSoup(resul 阅读全文
posted @ 2020-03-18 19:12 wing-小 阅读(414) 评论(0) 推荐(0)
摘要:import string import pymysql import random import time users={"xiaowang":"xiaowang123"} no=0 charge_info={} welcome_info = """ 欢迎使用记账系统 出品人:流氓兔 理性消费! 阅读全文
posted @ 2020-03-17 20:58 wing-小 阅读(133) 评论(0) 推荐(0)
摘要:import os """ 根据命令行输入的统计目录及文件类型进行统计目录或单个文件的代码行数 """ def count_all_file_code(count_path,file_types=[]): #判断传入文件是否为空 if len(file_types)==0: file_types=[ 阅读全文
posted @ 2019-12-31 10:24 wing-小 阅读(570) 评论(0) 推荐(0)
摘要:执行python.py的时候报错,Error in sitecustomize; set PYTHONVERBOSE for traceback: NameError: name 'reload' is not defined 解决方案: 将路径D:\python3\Lib\site-package 阅读全文
posted @ 2019-12-31 10:04 wing-小 阅读(2440) 评论(0) 推荐(1)