scipy.constants.
單位#
- scipy.constants.unit(key)[source]#
由鍵索引的 physical_constants 中的單位
- 參數:
- keyPython 字串
字典
physical_constants
中的鍵
- 回傳值:
- unitPython 字串
在
physical_constants
中對應於 key 的單位
範例
>>> from scipy import constants >>> constants.unit('proton mass') 'kg'