上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 74 下一页
该文被密码保护。 阅读全文
posted @ 2021-12-19 11:56 晨光曦微 阅读(0) 评论(0) 推荐(0)
摘要: urls=[ f"https://www.cnblogs.com/sitehome/p/{page}" for page in range(1,5+1) ] print(urls) ['https://www.cnblogs.com/sitehome/p/1', 'https://www.cnblo 阅读全文
posted @ 2021-12-19 11:24 晨光曦微 阅读(33) 评论(0) 推荐(0)
摘要: df['原价']=pd.factorize(df["原价"])[0].astype(float) df['原价']=pd.factorize(df["原价"])[0].astype(int) 阅读全文
posted @ 2021-12-18 20:26 晨光曦微 阅读(3337) 评论(0) 推荐(0)
摘要: import requests as r from lxml import etree import re,os,random,time url='http://xxx.com/xx' res=r.get(url) html=etree.HTML(res.text) title=html.xpath 阅读全文
posted @ 2021-12-18 11:59 晨光曦微 阅读(245) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-12-18 11:32 晨光曦微 阅读(0) 评论(0) 推荐(0)
摘要: 【加油的时候别加满了】 40升的油箱加个35就行了,估计跑的公里数差不多,在航空领域这个现象叫“油耗油”,别白浪费钱,还污染环境。 【正常行驶时,前车突然并线给你让路,绝对没好事】 咱们现在的司机还没这个觉悟,千万别给油超车,最好马上松油预备刹车,同时迅速观察两侧后视镜,判断出如果要并线往哪边并,八 阅读全文
posted @ 2021-12-17 10:32 晨光曦微 阅读(68) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-12-17 10:04 晨光曦微 阅读(11) 评论(0) 推荐(0)
摘要: import random,time sleeptime=random.randint(3, 5) time.sleep(sleeptime) 阅读全文
posted @ 2021-12-16 20:22 晨光曦微 阅读(551) 评论(0) 推荐(0)
摘要: """ utf8 编码""" from urllib.request import quote, unquote url1 = "https://www.baidu.com/s?wd=百度" # utf8编码,指定安全字符 ret1 = quote(url1, safe=";/?:@&=+$,", 阅读全文
posted @ 2021-12-16 20:15 晨光曦微 阅读(316) 评论(0) 推荐(0)
摘要: import os ... fname='xxx.csv' if not os.path.exists(fname): #文件存在则写表头 header默认=True df.to_csv(fname,mode='a',encoding='utf-8-sig',index=False,index_la 阅读全文
posted @ 2021-12-16 19:52 晨光曦微 阅读(1637) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 74 下一页