摘要:
带参数装饰器 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_ 阅读全文