It is said that in 2011, there are about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would help a lot if y ...
分类:
其他好文 时间:
2020-04-29 21:35:39
阅读次数:
64
spider文件 继承RedisCrawlSpider,实现全站爬取数据 import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from h ...
分类:
数据库 时间:
2020-04-24 09:16:11
阅读次数:
141
简评:本文系译文,原作者 Julie Zhuo 是 Facebook 的 Product design VP。有时候我们提问(例如,为什么留存率下降了?)是以产品为中心的,如果换个角度,以用户为中心来提问(为什么用户不用这个产品了?),思考的角度就截然不同。 设计一个有价值的产品的第一准则,是这个产 ...
分类:
编程语言 时间:
2020-04-23 18:57:32
阅读次数:
75
[TOC] API serializers.Serializer 序列化 read_only = True choice字段 一对多 & 多对多 先把其他序列化类(publisherserializer,authorserializer)写完 通过有没有many = True来区分 一对多和多对多 ...
分类:
其他好文 时间:
2020-04-21 15:37:06
阅读次数:
60
pipeline { agent any parameters { choice( choices: 'feature\nmaster\npercent10', description: '选择要发布的分支,默认是feature', name: 'deploy_branch' ) choice( c ...
分类:
其他好文 时间:
2020-04-12 18:50:14
阅读次数:
147
最常用的函数有如下: random.randint random.randint(1,10) 语句的含义是产生1至10(包含1与10)的一个随机数(整数int型)。(参数为整数不可为浮点数否则会报错) random.randint(20, 10) #该语句是错误的。下限必须小于或等于上限。 rand ...
分类:
编程语言 时间:
2020-04-01 00:46:53
阅读次数:
83
方法一:知识点:random.sample(sequence,k)从指定序列中随机获取指定长度的片断importrandom,stringnum=string.ascii_letters+string.digitsprint("".join(random.sample(num,10)))方法二:知识点:random.choice(sequence)从序列中获取一个随机元素‘‘‘遇到问题没人解答?小
分类:
编程语言 时间:
2020-03-28 21:50:06
阅读次数:
98
方法一: 知识点:random.sample(sequence, k) 从指定序列中随机获取指定长度的片断 方法二: 知识点:random.choice(sequence) 从序列中获取一个随机元素 方法三: 知识点:random.randint(a,b) 用于生成一个指定范围内的整数 方法四: 列 ...
分类:
编程语言 时间:
2020-03-28 21:35:28
阅读次数:
82
本文参考原文-http://bjbsair.com/2020-03-22/tech-info/2813/njmonnjmon=nmon+JSONformat+real-timepushtoastatsdatabase+instantgraphingof“allthestatsyoucaneat”(AIXandLinux)Thisnjmonisamajoroverhaulofnmonforthene
分类:
其他好文 时间:
2020-03-25 10:42:57
阅读次数:
74