sww4718168's recent timeline updates
sww4718168

sww4718168

V2EX member #105331, joined on 2015-03-18 16:27:39 +08:00
sww4718168's recent replies
Oct 7, 2018
Replied to a topic by songdg Python 不知道数组有没有占位符这样一个概念
np.nan ?
Oct 7, 2018
Replied to a topic by ltoddy Python 今天再分享一段代码( Python 二叉树遍历)
`yield from` 真是让我们省了好多好多代码。
Oct 6, 2018
Replied to a topic by ltoddy Python 分享一段 Python 代码(关于 defaultdict 的)
@ltoddy 只是好奇应用场景是什么。
Oct 6, 2018
Replied to a topic by ltoddy Python 分享一段 Python 代码(关于 defaultdict 的)
这是为了模拟枚举么?为什么不直接用 enum
Sep 27, 2018
Replied to a topic by fayefang Python Python 的装饰器执行顺序问题
```
@deco
def func():
pass
```
是 `func = deco(func)` 的语法糖。这样能明白?

所以
```
@deco1
@deco2
def func():
pass
```
是 `func = deco2(func); func = deco1(func)`
也是 `func = deco1(deco2(func))`

这样明白?
众多支持 Asyncio 的框架中,tornado 大概是性能最渣的一个。
Sep 27, 2018
Replied to a topic by songdg Python 如何连接变量
```python
getattr(data.root.daily, 'ST{n}'.format(n=n))
```
asyncore 已经标记废弃了。直接看 asyncio 吧。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2837 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 466ea39e · 34ms · UTC 11:37 · PVG 19:37 · LAX 04:37 · JFK 07:37
♥ Do have faith in what you're doing.