scipy.constants.
unit#
- scipy.constants.unit(key)[source]#
由键索引的
physical_constants
中的单位- 参数:
- keyPython 字符串
字典
physical_constants
中的键
- 返回:
- unitPython 字符串
与 key 对应的
physical_constants
中的单位
示例
>>> from scipy import constants >>> constants.unit('proton mass') 'kg'