code import time from multiprocessing import Queue, Process def f(q): q.put([time.asctime(), 'from Eva', 'hello']) # 调用主函数中p进程传递过来的进程参数,puy函数为向队列中添加一条 ...
分类:
系统相关 时间:
2020-12-31 12:04:34
阅读次数:
0
嵌套取值操作 1. 请取出第一个学生的第一个爱好 students_info = [['egon', 18, ['play', ]], ['alex', 18, ['play', 'sleep']]] print(students_info[0][2][0]) 2. 针对字典,请取出取公司名 inf ...
分类:
其他好文 时间:
2020-12-31 12:02:21
阅读次数:
0
一 Mac中git ssh配置基本流程:https://www.jianshu.com/p/601735ce7113 生成秘钥:ssh-keygen -t rsa -C "your_email@example.com" (注意ssh后面不能有空格) 验证Key是否配置成功:ssh -T git@gi ...
分类:
其他好文 时间:
2020-12-31 11:52:17
阅读次数:
0
当有中文列的时候,设置列对齐: pd.set_option('display.unicode.ambiguous_as_wide', True) pd.set_option('display.unicode.east_asian_width', True) Pandas按行遍历DataFrame的3 ...
分类:
其他好文 时间:
2020-12-31 11:44:48
阅读次数:
0
闭包是什么? 先来看看维基百科上的描述: 在计算机科学中,闭包(英语:Closure),又称词法闭包(Lexical Closure)或函数闭包(function closures),是引用了自由变量的函数。这个被引用的自由变量将和这个函数一同存在,即使已经离开了创造它的环境也不例外。所以,有另一种 ...
分类:
其他好文 时间:
2020-12-30 11:27:53
阅读次数:
0
1、Bean 的作用域介绍 我们可以通过XML<bean> 元素中的 scope 属性 或者 @Scope 注解 来设置,例如: XML 中设置作用域:<bean id="" class="" scope="prototype" />注解设置作用域: @Scope("prototype") 或者 @ ...
分类:
编程语言 时间:
2020-12-30 10:58:35
阅读次数:
0
CMakeLists.txt cmake_minimum_required(VERSION 3.15) project(Test) enable_language(ASM_NASM) set(CMAKE_C_STANDARD 99) set(ASM_SOURCES test.asm ) set (S ...
分类:
系统相关 时间:
2020-12-30 10:27:07
阅读次数:
0
pipeline { agent any environment { imagename = '镜像名' tag = "v${BUILD_NUMBER}" #版本号 } stages { stage('Pull code') { steps { echo "${imagename}:${tag}" ...
分类:
其他好文 时间:
2020-12-29 11:15:03
阅读次数:
0
删除/永久删除文件 delete /unreserved 恢复删除的文件 undelete 彻底删除回收站中的文件 reset recycle-bin 显示当前配置文件 display current-configuration 显示保存的配置文件 display saved-configurati ...
分类:
其他好文 时间:
2020-12-28 11:28:47
阅读次数:
0
没有JS的前端:体积更小、速度更快!作者|MattReyer译者|无明Slimvoice是一款几乎不包含JavaScript的WebApp。2014年,我基于Angular1开发了Slimvoice的第一个版本,使用了Node.js后端和MongoDB(这些技术在当时风靡一时)。2015年,我决定对UI进行彻底的改造,并使用React重新设计和构建。对于新版本,我想证明我们可以通过出色的设计提供出
分类:
Web程序 时间:
2020-12-24 12:11:05
阅读次数:
0