07 2021 档案
摘要:列表拆分成小列表 l = [i for i in range(16)] n = 3 #大列表中几个数据组成一个小列表 print([l[i:i + n] for i in range(0, len(l), n)]) print([i for i in range(0, len(l), n)]) 使用
        阅读全文
            
摘要:1. pip install xlwings https://zhuanlan.zhihu.com/p/82783751?utm_source=wechat_session&utm_medium=social&utm_oi=1087267078251094016&utm_campaign=share
        阅读全文
            
摘要:window + R,输入regedit回车进入注册表 进入如下目录 HKEY_CLASSES_ROOT\Directory\Background\shell 在Shell下面建立文件
        阅读全文
            
摘要:带参数装饰器 def get_decorator(errors=(Exception, ), default_value=''): def decorator(func): def new_func(*args, **kwargs): try: return func(*args, **kwargs
        阅读全文
            
摘要:https://zhuanlan.zhihu.com/p/102144412 PSK: 载波的相位变化,幅度不变化:π/2-BPSK, QPSK。这就是前面说的PSK(Phase-Shift keying相移键控)。 QAM 载波的相位和幅度都变化:16QAM, 64QAM,256QAM。这一类专业
        阅读全文
            
摘要:https://blog.csdn.net/u013634684/article/details/49646311
        阅读全文
            
摘要:https://www.zhihu.com/question/22298352
        阅读全文
            
摘要:aliasing ''' ################## ''' # # class Animal: # def __init__(self, favourite_food): # self.favourite_food = favourite_food # # # class Zoo: # 
        阅读全文
            
摘要:https://yunfwe.cn/2019/09/23/2019/LXC%20Linux%E7%B3%BB%E7%BB%9F%E5%AE%B9%E5%99%A8/
        阅读全文
            
摘要:代码 # wraps的参数是原来的函数,修饰返回的函数 def _implicit_lookup(self, subroutine, arg_name): # feed 里面查找 animal replacer = ArgumentReplacer(subroutine, arg_name) @wr
        阅读全文
            
摘要:【原始】打开记事本 def createFile(filename): if os.path.exists(filename) == False: open(filename, "a").close() if os.path.getsize(filename): pass else: f = ope
        阅读全文
            
摘要:为什么要使用闭包 # 参考 https://juejin.cn/post/6844903878111019022 # 闭包模板 def closure4 = { x, y -> println("x is ${x}, y is ${y}") } // 省略类型 Closure closure6 = 
        阅读全文
            
摘要:show = { println it } square_root = { Math.sqrt(it) } def please(action) { [the: { what -> [of: { n -> action(what(n)) }] }] } please show the square_
        阅读全文
            
摘要:文档 # 官方hello word https://plugins.jenkins.io/job-dsl/ https://jenkinsci.github.io/job-dsl-plugin/ # 【DSL文档】结合JCasC插件方法 https://github.com/jenkinsci/jo
        阅读全文
            
摘要:https://plugins.jenkins.io/configuration-as-code/
        阅读全文
            
摘要:https://blog.51cto.com/wugang2126/1161801 (1)手动方式 这种方式很简单,设置端口成员链路两端的模式为“on”。 命令格式为: channel-group <number组号> mode on (2)自动方式 自动方式有两种协议: PAgP(Port Agg
        阅读全文
            
摘要:def retry(int times = 5, Closure errorHandler = {e-> log.warn(e.message,e)} , Closure body) { int retries = 0 def exceptions = [] while(retries++ < ti
        阅读全文
            
摘要:https://www.jenkins.io/blog/2017/10/02/pipeline-templates-with-shared-libraries/
        阅读全文
            
摘要:基础知识 # 例子1 import numpy as np teams_list = ["Man Utd","Man City","T Hotspur"] data = np.array([[1, 2, 1], [0, 1, 0], [2, 4, 2]]) row_format ="{:>15}" 
        阅读全文
            
摘要:smbclient方法 def check_smb_img(): smbclient.register_session("1.1.1.1", username="name", password="password") img_path = smbclient.listdir(r"\\1.1.1.1\
        阅读全文
            
摘要:字符串切片汇总 [:-1]和[::-1] a='python' b=a[::-1] #nohtyp # 倒序 c=a[::-2] #nhy d=a[:-1] #从位置0到位置-1之前的数 #pytho e=a[:-2] #从位置0到位置-2之前的数 #pyth # 去掉后缀 name = file[
        阅读全文
            
摘要:print # 打印进度 for i in range(30): print('\r%d'%i, end='', flush=True) time.sleep(1) # 机器学习打印环境 def update_env(L): while True: env_list = ['T']+ ['-'] *
        阅读全文
            
摘要:带行的str转list str.splitlines([keepends])
        阅读全文
            
摘要:awk 方法 https://www.cnblogs.com/xudong-bupt/p/3721210.html $ ps -ef | awk 'NR==1{print $1,$2,$8} /java|mysql/{print $1, $2, $8}' UID PID CMD mysql 3494
        阅读全文
            
摘要:基本 from robot.api import SuiteVisitor class TestStatusChecker(SuiteVisitor): def __init__(self, *args): pass def visit_test(self, test): if 'PASS' in 
        阅读全文
            
浙公网安备 33010602011771号