/* * linux/boot/head.s * * (C) 1991 Linus Torvalds */ /* * head.s contains the 32-bit startup code. * * NOTE!!! Startup happens at absolute address 0x ...
分类:
系统相关 时间:
2020-07-11 18:54:26
阅读次数:
63
最近在学习python多线程,由于之前没有接触这块,这下可吃下苦头了 python多线程传参并不像C++/java那么方便,虽然定义了args 和 kargs参数,但总体感觉还是觉得没有其它 语言灵活,废话不多说踩过的坑说一下 比如我们开一个线程,免不了要传递一些参数 self._thread = ...
分类:
编程语言 时间:
2020-07-11 17:18:04
阅读次数:
74
1.使用描述符+类的装饰器 class Typed: def __init__(self,key,type): self.key=key self.type=type def __get__(self, instance, owner): return instance.__dict__[self. ...
分类:
编程语言 时间:
2020-07-11 17:16:41
阅读次数:
80
class Room: def __init__(self,name,length,width): self.name=name self.length=length self.width=width @property def test(self): return self.length*self ...
分类:
其他好文 时间:
2020-07-11 15:33:30
阅读次数:
48
Hi everyone! My name is Yuwei, and I'm a senior major in computer science. I enjoy meditation and jogging, and I feel like my soul is in a state of pe ...
分类:
其他好文 时间:
2020-07-11 10:08:34
阅读次数:
97
一、父组件与子组件通信 父组件与子组件通信段桥梁是子组建的**props**属性,通过属性绑定的方式,将父组件的数据传到子组件的props中,子组件在内部使用这些数据。 HTML部分 <div id="app"> <!-- 父组件将fruit传递给 f --> <component-a v-bind ...
分类:
其他好文 时间:
2020-07-10 21:14:18
阅读次数:
57
.stop .prevent .capture .self .once .stop 和 .self 的区别 ...
分类:
其他好文 时间:
2020-07-10 15:30:21
阅读次数:
64
unittest断言 Python在 unittest.TestCase 类中提供了很多断言方法。断言方法检查你认为应该满足的条件是否确实满足。如果该条件确实满足,你对程序行为的假设就得到了确认,你就可以确信其中没有错误。如果你认为应该满足的条件实际上并不满足,Python将引发异常。下表描述了6个 ...
分类:
其他好文 时间:
2020-07-10 15:27:17
阅读次数:
69
原文: https://wiki.mikrotik.com/wiki/Manual:IP/Fasttrack 需要两条命令来执行: /ip firewall filter add chain=forward action=fasttrack-connection connection-state=e ...
分类:
其他好文 时间:
2020-07-10 13:42:19
阅读次数:
173
1. 报错信息 1. def _connparams(self, async=False, _r210_options=( ^ SyntaxError: invalid syntax 原因: async 在 python3.7已经是关键字了,但是celery4.4.6版本没有更新导致的。此问题将在下 ...
分类:
其他好文 时间:
2020-07-10 13:21:34
阅读次数:
108