题目描述 1065 A+B and C (64bit) (20 分) Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line ...
分类:
其他好文 时间:
2021-03-10 13:11:02
阅读次数:
0
顺序执行变为异步执行 # 导包 import multiprocessing import time def dance(): for i in range(3): print('跳舞中...') time.sleep(0.2) def sing(): for i in range(3): prin ...
分类:
编程语言 时间:
2021-03-10 13:04:45
阅读次数:
0
charger_area_list, _ = cls.paginator(charger_area_list, page_no, page_size) 要定义类方法,才可以使用cls调用 class BaseService(object): @classmethod # limit分页 def li ...
分类:
编程语言 时间:
2021-03-10 13:03:32
阅读次数:
0
4.代码展示: - 爬虫文件: class WangyiSpider(RedisSpider): name = 'wangyi' #allowed_domains = ['www.xxxx.com'] start_urls = ['https://news.163.com'] def __init_ ...
分类:
其他好文 时间:
2021-03-10 13:00:28
阅读次数:
0
1.docker是通过镜像去创建容器用的 2.Dockerfile是通过别的镜像,增加些操作去自己制作镜像 3.docker-compose可以理解成docker的升级版,docker能做的事情它也能做,同时它还具有编排多个docker的作用。 假如:我们有两个容器,一个是springboot应用, ...
分类:
其他好文 时间:
2021-03-09 13:35:25
阅读次数:
0
// proxy [?prɑ?ksi] 代理 // // es5代理方式 // let obj = {} // let newVal = '' // Object.defineProperty(obj, 'name', { // 第一个变量名称当前对象 第二个为当前对象的属性值 // get() { ...
分类:
其他好文 时间:
2021-03-09 13:23:18
阅读次数:
0
Description 题目见 https://leetcode.com/problems/diagonal-traverse-ii/ code 这是考验智商的题目~~ 我的代码 import bisect class Solution(object): def findDiagonalOrder( ...
分类:
其他好文 时间:
2021-03-09 12:53:59
阅读次数:
0
一、类的初始 1.类的结构 class Human: """ 此类主要是构建人类 """ mind = '有思想' # 第一部分:静态属性 属性 静态变量 静态字段 dic = {} l1 = [] def work(self): # 第二部分:方法 函数 动态属性 print('人类会工作') c ...
分类:
编程语言 时间:
2021-03-08 14:14:08
阅读次数:
0
quickSort def partition(arr,low, high): i=(low-1) p=arr[high] for j in range(low, high): if arr[j]<=p: i+=1 arr[i],arr[j]=arr[j],arr[i] arr[i+1],arr[h ...
分类:
编程语言 时间:
2021-03-08 14:00:56
阅读次数:
0
作用域 def test1(): print("in the test1")def test(): print("in the test") return test1 》test1 是函数test1的IP地址s = test() >运作test()结果是 in the test ,然后返回test1 ...
分类:
其他好文 时间:
2021-03-08 13:36:19
阅读次数:
0