上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 75 下一页
该文被密码保护。 阅读全文
posted @ 2022-03-05 11:51 晨光曦微 阅读(0) 评论(0) 推荐(0)
摘要: M、V、VM分别代表什么? M: model,数据部分,即data V: view,视图,即html部分 vm: viewmodel,vue实例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="vi 阅读全文
posted @ 2022-03-05 10:29 晨光曦微 阅读(2624) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-12-19 14:33 晨光曦微 阅读(0) 评论(0) 推荐(0)
摘要: 1、字符串前加 u 例:u"我是含有中文字符组成的字符串。" 作用:后面字符串以 Unicode 格式 进行编码,一般用在中文字符串前面,防止因为源码储存格式问题,导致再次使用时出现乱码。 2、字符串前加 r 例:r"\n\n\n\n” # 表示一个普通生字符串 \n\n\n\n,而不表示换行了。 阅读全文
posted @ 2021-12-19 14:26 晨光曦微 阅读(256) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
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 晨光曦微 阅读(69) 评论(0) 推荐(0)
摘要: df['原价']=pd.factorize(df["原价"])[0].astype(float) df['原价']=pd.factorize(df["原价"])[0].astype(int) 阅读全文
posted @ 2021-12-18 20:26 晨光曦微 阅读(3379) 评论(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 晨光曦微 阅读(273) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2021-12-18 11:32 晨光曦微 阅读(0) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 75 下一页