会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
新随笔
订阅
管理
上一页
1
···
106
107
108
109
110
111
112
113
114
···
341
下一页
2021年12月17日
查看oracle是否正常、表空间 (AIX)
摘要: REF http://blog.itpub.net/23556054/viewspace-1115506/ 查看 oracle 数据库是否启动: 一、LINUX: 1、用 ps -ef|grep ora 查看,是否有oracle的进程,linux下还可以用ipcs查看 2、查看监听的方法 cd /o
阅读全文
posted @ 2021-12-17 11:13 emanlee
阅读(926)
评论(0)
推荐(0)
2021年12月16日
Pycharm 运行程序后如何 如何查看变量的值(不通过debug的方式)
摘要: Run菜单,选择‘’编辑配置‘, 每个py文件单独做以下的设置: 勾选 Run with Python Console 执行脚本,可以看到现在脚本运行在Python Console中,而不是通常的Run下运行了,现在我们就可以像IDLE一样,程序运行结束后,直接在Console输入命令,查看变量的值
阅读全文
posted @ 2021-12-16 19:44 emanlee
阅读(2333)
评论(0)
推荐(0)
2021年12月6日
关于word使用WildCards进行查找和替换
摘要: 【 REF:https://blog.csdn.net/solaris_navi/article/details/3589256 】 要查找和替换的项目的通配符如果要查找:任意单个字符键入 ?例如,s?t 可查找“sat”和“set”。 任意字符串键入 *例如,s*d 可查找“sad”和“start
阅读全文
posted @ 2021-12-06 21:40 emanlee
阅读(690)
评论(0)
推荐(0)
2021年12月5日
Python beautifulsoup
摘要: beautifulsoup通过id获取指定元素内容 bs.find('th', id='DetailTilte') 通过class 查找 soup.find_all('span', class_='item_hot_topic_title') soup.find(class_ ='primaryco
阅读全文
posted @ 2021-12-05 20:46 emanlee
阅读(60)
评论(0)
推荐(0)
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: lxml
摘要: 解决办法: 1.安装 pip install lxml pip install html_parser 2.将 BeautifulSoup(html,'html.parser') 改为 BeautifulSoup(html,'lxml') , 或 反之
阅读全文
posted @ 2021-12-05 19:44 emanlee
阅读(616)
评论(0)
推荐(0)
2021年12月4日
Python 3 写文件 UnicodeEncodeError: 'gbk' codec can't encode character
摘要: Python 3 写文件 UnicodeEncodeError: 'gbk' codec can't encode character 网页代码中存在“”<meta charset="gbk">“”,如果存为 utf-8,再用浏览器打开,会出现乱码。因此,必须存为 gbk。 解决方法: 在写入 st
阅读全文
posted @ 2021-12-04 22:24 emanlee
阅读(735)
评论(0)
推荐(0)
Python 3中的编码
摘要: Python 3中的默认编码 Python3中默认是UTF-8 可查看Python3的默认编码。 >>> import sys >>> >>> sys.getdefaultencoding() 'utf-8' >>> 系统默认编码 指: 在python 3编译器读取.py文件时,若没有头文件编码声明
阅读全文
posted @ 2021-12-04 10:37 emanlee
阅读(1228)
评论(0)
推荐(0)
2021年12月3日
UnicodeEncodeError: 'gbk' codec can't encode character '\ue625' in position 324196: illegal multibyte sequence
摘要: UnicodeEncodeError: 'gbk' codec can't encode character '\ue625' in position 324196: illegal multibyte sequence f = open("out.html","w",encoding='utf-8
阅读全文
posted @ 2021-12-03 22:07 emanlee
阅读(263)
评论(0)
推荐(0)
使用requests.get()得到的源代码与浏览器中的不一样
摘要: 用requests.get()之后得到的源代码跟浏览器里面的不一样 崔庆才的《python3网络爬虫开发实战》在2.3.3节: 我们用urllib或requests获取到的是HTML源代码,但是这个网页是用js渲染的,上面两个库不会像浏览器那样继续运行后面请求来的js模块,所以不一样。 Seleni
阅读全文
posted @ 2021-12-03 00:11 emanlee
阅读(2415)
评论(0)
推荐(0)
2021年12月2日
获得硬盘上文件 文件夹
摘要: 获得硬盘上文件 文件夹 当前文件夹 dir *.* /b 当前文件夹和子文件夹 tree /f
阅读全文
posted @ 2021-12-02 15:54 emanlee
阅读(43)
评论(0)
推荐(0)
上一页
1
···
106
107
108
109
110
111
112
113
114
···
341
下一页