用法:
sys._xoptions
通過
-X
命令行 選項傳遞的各種特定於實現的標誌的字典。如果明確給出,選項名稱或者映射到它們的值,或者映射到True
。例子:$ ./python -Xa=b -Xc Python 3.2a3+ (py3k, Oct 16 2010, 20:14:50) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys._xoptions {'a': 'b', 'c': True}
CPython 實現細節:這是訪問通過的選項的特定於 CPython 的方式
-X
.其他實現可能會通過其他方式導出它們,或者根本不導出它們。3.2 版中的新函數。
相關用法
- Python sys.platform用法及代碼示例
- Python sys.maxint用法及代碼示例
- Python sys.maxsize()用法及代碼示例
- Python sys.displayhook用法及代碼示例
- Python sys.float_info用法及代碼示例
- Python sys.settrace()用法及代碼示例
- Python sys.setrecursionlimit()用法及代碼示例
- Python sys.getswitchinterval()用法及代碼示例
- Python sys.stdout.write用法及代碼示例
- Python sys.hexversion用法及代碼示例
- Python sys.setswitchinterval()用法及代碼示例
- Python sys.path用法及代碼示例
- Python sys.getallocatedblocks()用法及代碼示例
- Python sys.getrecursionlimit()用法及代碼示例
- Python sys.getdefaultencoding()用法及代碼示例
- Python sympy.rf()用法及代碼示例
- Python sympy.stats.GammaInverse()用法及代碼示例
- Python sympy.integrals.transforms.mellin_transform()用法及代碼示例
- Python sympy.replace()用法及代碼示例
- Python sympy from_rgs()用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 sys._xoptions。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。