小明种树 试题编号: 201909-1 试题名称: 小明种苹果 时间限制: 2.0s 内存限制: 512.0MB 题解:模拟一下,记录坏果数量和对应的果树的序号,排下序 3 3 73 -8 -6 -4 76 -5 -10 -8 80 -6 -15 0 1 n,m=map(int, input().s ...
分类:
编程语言 时间:
2021-04-06 14:37:49
阅读次数:
0
Python编码解码技巧汇总 encode encode将字符串转换为bytes类型的对象 (即b为前缀, bytes类型), 即Ascll编码, 字节数组 a = "检测到网站攻击" print(a.encode()) print(type(a.encode())) # b'\xe6\xa3\x8 ...
分类:
编程语言 时间:
2021-04-06 14:32:28
阅读次数:
0
在使用手机APP的过程中,用户信息会不知不觉的被APP悄无声息的收集到云端,然后进行各种用户行为分析以及智能推荐,这是众所周知但秘而不宣的事。 在使用开源软件时,也存在悄悄收集用户使用信息,并且上报到云端的行为,并且配置是默认打开的,有的配置项名字还比较绕,乍一看以为是关闭的。 开源事好,但收集信息 ...
分类:
数据库 时间:
2021-04-06 14:31:55
阅读次数:
0
部署prometheus监控端mkdir /opt/monitor/[root@zabbix ~]# tar -xf prometheus-2.25.0.linux-amd64.tar.gz -C /opt/monitor/[root@zabbix ~]# mv prometheus-2.25.0. ...
分类:
其他好文 时间:
2021-04-06 14:27:18
阅读次数:
0
监控进程 NTSTATUS PsSetCreateProcessNotifyRoutineEx( PCREATE_PROCESS_NOTIFY_ROUTINE_EX NotifyRoutine, BOOLEAN Remove ); 通过PsSetCreateProcessNotifyRoutineE ...
分类:
编程语言 时间:
2021-04-06 14:04:34
阅读次数:
0
项目地址: github.com/brython-dev/brython 当前版本 3.9.1 ,支持cpython3.9.0 cdn加速: https://www.bootcdn.cn/brython/ django中使用cpython : django-brython 最新版本发布于2020年1 ...
分类:
编程语言 时间:
2021-04-06 14:04:12
阅读次数:
0
s = set('hello,word') print(s) #set 方法 s = {'xiaoming', 'xiaoming', 'xiaoming1'} print(s) s.add('s') # 添加元素 s.clear(s) # 清空集合 s1 = s.copy(s) # 复制集合 s. ...
分类:
编程语言 时间:
2021-04-05 12:51:32
阅读次数:
0
# %s 全能 print('I am %s my hobby is %s' %('A','alex')) print('I am %s , I`m %s year old' %('A',1)) # %d 整型 # name = input('你的姓名:') # age = int(input('你 ...
分类:
编程语言 时间:
2021-04-05 12:51:05
阅读次数:
0
一 for循环 #for循环可以循环任何序列的项目 for i in range(1,10): for j in range(1,i+1): print('%s*%s=%s'%(i,j,i*j),end="") print() 二 可变不可变类型 #for循环可以循环任何序列的项目 for i in ...
分类:
编程语言 时间:
2021-04-05 12:49:56
阅读次数:
0
创建队列 #创建队列 queue=deque() #这里创建的是双端的 添加元素 #append()方法 O(1) queue.append(1) queue.append(2) queue.append(3) print(queue) #[1,2,3] 获取即将出队的元素 # O(1) temp1 ...
分类:
编程语言 时间:
2021-04-05 12:30:54
阅读次数:
0