分类 python 中的文章

聊天机器人整理

思知机器人 想在博客里添加闲聊功能,想要一个机器人,之前试过图灵机器 机器人项目汇总 (17条消息) 史上最全面聊天机器人总结,图灵、思知、小爱、小微,作者已接入到自己的开源IM项目中使用_xmcy001122的专栏-CSDN博客_思知机器人 聊天机器人gitee资料 Awesome-Chatbot: 聊天机器人资源合集:……

阅读全文

python笔记

python笔记 杨辉三角 只能用奇妙来形容了 :smile: def triangle(): L =[1] while True: b=L.copy() yield b L.append(0) L=[L[i]+L[i-1] for i in range(len(L))] 1012 翻转字符串 >>> def reverseWords(input): ... inputWords = input.split(" ") ... inputWords = inputWords[-1::-1] ... output = ' '.join(inputWords) ... return output ... >>> input = 'I like runnob' >>> rw = reverseWords(input) >>> rw 'runnob like I' 集合的使用 #!/usr/bin/python3 sites = {'Google', 'Taobao', 'Runoob', 'Facebook', 'Zhihu', 'Baidu'} print(sites) # 输出集合,重复的元素被自动去掉 # 成员测试 if 'Runoob' in sites : print('Runoob 在集合中') else : print('Runoob 不在集合中') # se……

阅读全文

爬虫的ip代理池

IP代理池 github 上的爬虫ip池,使用docker就可以搭建 https://github.com/jhao104/proxy_pool https://github.com/Python3WebSpider/ProxyPool……

阅读全文