scipy.constants.unit

scipy.constants.unit(key)[源代码]

由键索引的Physical_Constants中的单位

参数
keyPython字符串或Unicode

输入字典中的关键字 physical_constants

退货
unitPython字符串

单位输入 physical_constants 对应于 key

示例

>>> from scipy import constants
>>> constants.unit(u'proton mass')
'kg'