06 2021 档案

摘要:1、打开Pycharm的项目,找到下方Terminal,打开 2、利用cd进入项目的Scripts文件夹中 3、利用pip install命令和pip uninstall命令安装和卸载所需要的包即可 阅读全文
posted @ 2021-06-03 15:38 时光如你般美好 阅读(194) 评论(0) 推荐(0) 编辑
摘要:####pandas无法打开.xlsx文件,xlrd.biffh.XLRDError: Excel xlsx file; not supported ####分析原因 最近xlrd更新到了2.0.1版本,只支持.xls文件。所以pandas.read_excel(‘xxx.xlsx’)会报错。 ## 阅读全文
posted @ 2021-06-03 15:33 时光如你般美好 阅读(2735) 评论(0) 推荐(0) 编辑
摘要:####File --> Settings... --> Editor --> General --> Console中勾选右侧第一项Use soft wraps in console可自动换行,否则不自动换行。 阅读全文
posted @ 2021-06-03 11:37 时光如你般美好 阅读(515) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/sunyueqinghit/article/details/81905509 阅读全文
posted @ 2021-06-03 10:44 时光如你般美好 阅读(27) 评论(0) 推荐(0) 编辑
摘要:在使用pycharm时,经常会需要多行代码同时缩进、左移,pycharm提供了快捷方式 #####1、pycharm使多行代码同时缩进 鼠标选中多行代码后,按下Tab键,一次缩进四个字符 #####2、pycharm使多行代码同时左移 鼠标选中多行代码后,同时按住shift+Tab键,一次左移四个字 阅读全文
posted @ 2021-06-01 16:18 时光如你般美好 阅读(392) 评论(0) 推荐(0) 编辑
摘要:Python读取文件时出现UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 16: illegal multibyte sequence。 q_path = r"C:\Users\青尘\Desktop\南航电网项目\ 阅读全文
posted @ 2021-06-01 16:00 时光如你般美好 阅读(1033) 评论(0) 推荐(0) 编辑
摘要:在运行python文件的时候竟然报“SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape”这个错误,其实引起这个错误的原因就 阅读全文
posted @ 2021-06-01 15:42 时光如你般美好 阅读(306) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示