其实这篇文章最开始动笔是写于9月份,PyCon China 2019 上海场的工作结束后。后续因为还有北京,成都场的工作,所以拖到了现在。正好我自己的三年计划刚刚落下帷幕。下一个三年计划正在开展。我也来聊聊在这三年里面, 让我花费精力最多,也是最为重要的部分组成之一吧。 PyCon China,嗯这三年的时间里,我有两年都在与这个熟悉而陌生的名字关联在了一起
说实话,之前 Laike9M 的一句话让我产生了共鸣
class Abc: | |
def __init__(self, x=None): | |
self._x = x | |
def print(self): | |
print(self._x) | |
Abc().print() |
from urllib.parse import urlparse | |
from requests.adapters import HTTPAdapter | |
class CustomHttpAdapter(HTTPAdapter): | |
def __init__(self, domain_proxies, *args, **kwargs): | |
self.domain_proxies = domain_proxies | |
self._pm_cache = {} | |
super(CustomHttpAdapter, self).__init__(*args, **kwargs) |
import functools | |
import signal | |
class TimeoutException(BaseException): | |
pass | |
def timeout_decorator(handler=None, timeout=None): | |
def decorator(func): |
[ | |
"我笑到方圆百里垃圾自动分类", | |
"我笑到鸡打鸣方圆十里的小学生以为天亮了纷纷背上书包上学", | |
"我笑到警察在我方圆二十里外拉警戒线", | |
"我笑到发出鸡叫路过食堂差点被师傅拉去做宫保鸡丁", | |
"我笑到疯狂捶墙我家变成了单人间", | |
"我笑到被抓去做了全家桶", | |
"我笑到惊动一千年后的警察跨时空逮捕", | |
"我笑到地崩山摧壮士死然后天梯石栈相钩连", | |
"求一个会打哈哈哈哈的评论区,喜欢评论区。宠爱", |
from typing import Type | |
class A(dict): | |
def __ior__(self,a): | |
return | |
def abc(name:str)->Type[dict]: | |
return A(**{"name":name}) | |
echo $(( $(</sys/fs/cgroup/cpu/cpu.cfs_quota_us) / $(</sys/fs/cgroup/cpu/cpu.cfs_period_us) )) |
@Override | |
public boolean equals(Object o) { | |
if (this == o) { | |
return true; | |
} | |
if (o == null || getClass() != o.getClass()) { | |
return false; | |
} | |
ModelApiResponseEntity _apiResponse = (ModelApiResponseEntity) o; | |
return Objects.equals(this.code, _apiResponse.code) && |
[user] | |
name = Manjusaka | |
email = [email protected] | |
[url "[email protected]:"] | |
insteadOf = https://gitlab.imetro.io/ | |
[url "[email protected]:"] | |
insteadOf = https://git.investsavior.com/ | |
[core] | |
autocrlf = input | |
editor = nvim |
[user] | |
name = Manjusaka | |
email = [email protected] | |
[url "[email protected]:"] | |
insteadOf = https://gitlab.imetro.io/ | |
[url "[email protected]:"] | |
insteadOf = https://git.investsavior.com/ | |
[core] | |
autocrlf = input | |
editor = nvim |