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