08 2019 档案
摘要:bug:当遇到3个“”“时 可能会将下面的代码不计入代码总行数 ~~~python import os def count_path(path,countcode): if os.path.isdir(path): file_list = os.walk(path) for file_path in
阅读全文
摘要:fidder是会占用 jupyter 端口的,在fidder里边最上边找到tools 》options 》connections里边的8888改成别的重启jupyter就好了
阅读全文
摘要:python文件部分: ~~~python user = {'username':None} shopping_trolley = {} shopping_num = [0] money = [0] my_money = [0] 获取商品列表 def get_goods_list(): with o
阅读全文
摘要:~~~python import requests from bs4 import BeautifulSoup url_list = [] kv = {'User Agent':'Mozilla/5.0'} r = requests.get('https://www.jianshu.com/p/42
阅读全文
摘要:from lxml import html text= //测试的html文本 etree = html.etree htmlDiv = etree.HTML(text) title = htmlDiv.xpath("//meta[1]/@content") print(title) 来源:CSDN
阅读全文

浙公网安备 33010602011771号