- 博客(2)
- 收藏
- 关注
原创 Linux 基础命令
Linux 命令 帮助命令 man 命令名 查看命令的全部帮助信息 命令名 --help 显示命令的一些参数帮助信息 info 命令名 与man相似,显示方式不一样 whatis 命令名 显示命令的简短信息 history 查看历史命令 pwd 查看当前目录的绝对路径 su 用户名 切换用户,如果不加用户名,则是切换到root用户 poweroff...
2018-05-27 11:41:27
144
转载 学习爬虫遇到TypeError: cannot use a string pattern on a bytes-like object 异常处理
#!/usr/python3import reimport urllib.requestdef gethtml(url): page=urllib.request.urlopen(url) html=page.read() return htmldef getimg(html): reg = r'src="(.*?\.jpg)"' img=re.compile(reg...
2018-05-27 11:35:52
553
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅