摘要: import requests from lxml import etree # User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36 def body(): url = "https://mp.weixin.qq... 阅读全文
posted @ 2019-05-15 22:34 挑水工 阅读(141) 评论(0) 推荐(0)
摘要: import requests from lxml import etree def body(): url = "https://mp.weixin.qq.com/s/6XYNToX51bWX7ij5MiTWFA" header = {'User-Agent':'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHT... 阅读全文
posted @ 2019-05-08 06:55 挑水工 阅读(136) 评论(0) 推荐(0)
摘要: def teyed(**kwargs): def demo(obj): print('======',kwargs) return obj print('---->',kwargs) return demo #不能加括好 @teyed(x=1,y=2,w=3) class Foo(): print('***') pass @teyed(f=3,g=... 阅读全文
posted @ 2019-05-06 06:50 挑水工 阅读(145) 评论(0) 推荐(0)
摘要: 函数的装饰器 阅读全文
posted @ 2019-05-06 06:00 挑水工 阅读(108) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Sukie_csdn/article/details/78672626 阅读全文
posted @ 2019-05-05 12:36 挑水工 阅读(73) 评论(0) 推荐(0)
摘要: test = "郑建文妹子有种从我来" index = 0 while index < len(test): v = test[index] print(v) index += 1 print("=======") 阅读全文
posted @ 2019-04-26 18:58 挑水工 阅读(91) 评论(0) 推荐(0)
摘要: 1 import random 2 3 def v_code(): 4 5 code = '' 6 for i in range(5): 7 8 num=random.randint(0,9) 9 alf=chr(random.randint(65,90)) 10 add=random.choice([num... 阅读全文
posted @ 2019-04-14 19:45 挑水工 阅读(103) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/mqxBlog/p/10253402.html 阅读全文
posted @ 2019-04-14 17:36 挑水工 阅读(345) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/yvlicai/p/9452675.html 阅读全文
posted @ 2019-04-14 17:24 挑水工 阅读(103) 评论(0) 推荐(0)
摘要: 1 import logging 2 logging.basicConfig(level=logging.DEBUG, 3 format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', 4 datefmt= 阅读全文
posted @ 2019-04-14 15:47 挑水工 阅读(121) 评论(0) 推荐(0)