相关疑难解决方法(0)

使用`__dict__`或`vars()`?

内置函数vars()对我来说看起来更像Pythonic,但我看到__dict__更频繁地使用.

Python文档表明它们是等效的.

一位博客声称__dict__比这更快vars().

我应该用哪个?

python

40
推荐指数
3
解决办法
6372
查看次数

标签 统计

python ×1