我找到了不同配置选项的文档,但是如何检查实时系统上使用的选项?
有没有办法查看设置了哪些选项,或者至少使用了哪个配置文件?
为什么dicts可以在python2中订购,但在python3中却没有?我在文档中的任何地方都找不到它.
Python 3.3.4 (default, Feb 11 2014, 16:14:21)
>>> sorted([{'a':'a'},{'b':'b'}])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: dict() < dict()
Run Code Online (Sandbox Code Playgroud)
与
Python 2.7.6 (default, Feb 26 2014, 12:01:28)
>>> sorted([{'a':'a'},{'b':'b'}])
[{'a': 'a'}, {'b': 'b'}
Run Code Online (Sandbox Code Playgroud) dictionary ×1
diff ×1
git ×1
mongodb ×1
python ×1
python-2.x ×1
python-3.x ×1
sorting ×1
vim ×1