Win 10下安装Python某个库报错:
Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Win 10下安装Python某个库报错:
Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
executemany(templet, args):能同时执行多条语句,执行同样多的语句可比execute()快很多,强烈建议执行多条语句时使用executemany
使用pymysql的 course.executemany(sql, update_list) 进行批量更新
Pandas收藏
程序的跑批日志有时候累加的多了会特别的大,如果我们只需要获取文件的后几行的话,就不需要依次遍历。
在使用win32api来修改同步windows的系统时间时报错:
win32api.SetSystemTime(tm_year, tm_mon, tm_wday, tm_mday, tm_hour, tm_min, tm_sec, int(msec))
pywintypes.error: (1314, 'SetSystemTime', '客户端没有所需的特权。')
想要不转义就给 json.dumps() 添加参数:
,ensure_ascii=False
Python中使用.join()连接list时,出现类型错误的解决办法:
对list中的元素进行类型转换到string
int()函数可以将字符串转换为整型,但是切记int()只能转化由纯数字组成的字符串,
非纯数字组成的字符串强转为整型会报错:ValueError: invalid literal for int() with base 10
使用Python写一个稍微大一点的工程时,经常会遇到 循环import,即 cicular import 的问题。
现实中经常出现这种滑稽的情况: