- 博客(7)
- 收藏
- 关注
原创 爬虫
爬虫入门格式:#12306举例import requestsurl = “https://www.12306.cn/mormhweb/”headers = {“User-Agent” : “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99...
2019-02-28 21:32:51
183
原创 python字典键值排序
d=[(‘a’,24),(‘g’,23),(‘e’,4)]print(sorted(d,key = lambda x:x[0]))[(‘a’, 24), (‘e’, 4), (‘g’, 23)]print(sorted(d,key = lambda x:x[1]))[(‘e’, 4), (‘g’, 23), (‘a’, 24)]d={‘a’:24,‘g’:23,‘e’:4}print(...
2018-12-24 17:54:56
988
原创 css伪类选择器
css伪类选择器<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>伪类选择器4</title> <style> /*
2018-11-28 20:28:52
141
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人