Python
文章平均质量分 76
weixin_43718742
这个作者很懒,什么都没留下…
展开
-
Python处理时间记录
Python处理时间记录原创 2022-06-17 16:47:08 · 277 阅读 · 0 评论 -
对字符串分别进行两次分割,分隔符为‘,’和‘-’,存为dataframe
对字符串分别进行两次分割,分隔符为‘,’和‘-’,存为dataframe ;str的split用法;str转为list,将数字和文字提取出来,分别形成相应的列原创 2021-12-30 11:29:24 · 1135 阅读 · 0 评论 -
GeckoDriver+Selenium+Try Xpath插件安装
GeckoDriver+Selenium+Try Xpath插件安装;WebDriverException: Message: Service firefox.exe unexpectedly exited. Status code was: 0;InvalidArgumentException: Message: binary is not a Firefox executable;SessionNotCreatedException: Message: Expected browser binary原创 2021-12-29 21:56:35 · 13526 阅读 · 0 评论 -
ajax爬虫小案例(百度翻译)
Ajax加载的爬虫;爬虫思维与分析步骤;百度翻译爬虫;"errno":997,"errmsg":"\u672a\u77e5\u9519\u8bef","query":"dog","from":"en","to":"zh","error":997};抓包交互原创 2021-12-28 14:31:15 · 1659 阅读 · 0 评论 -
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte xx in position xx: invalid continuation byte
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position xx: invalid continuation byte ;Unicode解码错误: 'utf-8'编解码器无法解码位置(第38行)中的字节:因为这个字节是无效的延续字节;pandas库的to_csv;'str' object has no attribute 'decode'原创 2021-12-17 15:55:38 · 56331 阅读 · 5 评论 -
python查看某个函数方法具体有哪些参数怎么做
python查看某个函数方法具体有哪些参数怎么做 在pycharm中查看某个函数方法具体有哪些参数 在jupyter notebook中查看某个函数方法具体有哪些参数原创 2021-12-16 16:37:47 · 9598 阅读 · 1 评论 -
list里每个元素字符串转为int;‘list‘ object is not callable;list中字符串改为int;字符串转为list;list每个int转为str;list转为字符串;
list里每个元素字符串转为int;'list' object is not callable;list中字符串改为int;字符串转为list;list的int字符串转为str;list转为字符串;原创 2021-12-15 16:03:13 · 982 阅读 · 0 评论 -
pandas DataFrame方法;dataframe 定义一个数值全为1的列;dataframe创建多列;如何拆分嵌套list存为dataframe;在数据集添加一个新的列
pandas DataFrame方法 dataframe 定义一个数值全为1的列 dataframe创建多列;如何拆分嵌套list存为dataframe;在数据集添加一个新的列原创 2021-12-14 09:47:53 · 5565 阅读 · 0 评论 -
py错误&jupyter:某个缩进Unindent不匹配任何外部缩进 IndentationError: unindent does not match any outer indentation
python缩进错误:某个缩进Unindent不匹配任何外部缩进级别 IndentationError: unindent does not match any outer indentation jupyter notebook错误原创 2021-12-10 14:51:19 · 6253 阅读 · 1 评论 -
selenium爬虫库的安装教程
selenium安装教程 selenium爬虫 chromedriver官网下载 如何找到Google是哪个版本原创 2021-12-07 12:00:58 · 829 阅读 · 3 评论 -
升级pip操作:WARNING: You are using pip version ; however,.. is available.You should consider ..command.
命令行升级pip ‘; 如何升级pip You are using pip version ; however,.. is available.You should consider ..command. ;jupyter notebook升级pip Anaconda3升级pip ;python -m pip install --upgrade pip原创 2021-12-06 21:26:40 · 8502 阅读 · 0 评论