随笔分类 - python_practice
摘要:内容:通过wget批量下载我自己博客园的随笔页面,看阅读量是否增加环境:kali+python思路:1、在终端利用调用脚本的方式执行python脚本,比如:python add_readcounts.py -f my_blogs2、对爬虫不熟,但是也不能把每一篇随笔的链接加入到代码中,使用一个文本保
阅读全文
摘要:######################TypeError: module.__init__() takes at most 2 arguments (3 given)继承错误,没有继承正确的类出现问题代码: 修正后的代码: ##### 后期遇到我难找到错误的问题会继续更新
阅读全文
摘要:1 s = input("输入:") 2 result = '' 3 for i in range(len(s)): 4 result += chr(ord(s[i])^2000) 5 print(result) ord(char) #把字符转换成unicode编码(整型) chr(unicode)
阅读全文

浙公网安备 33010602011771号