jax.export.minimum_supported_calling_convention_version#
- jax.export.minimum_supported_calling_convention_version = 9#
int([x]) -> integer int(x, base=10) -> integer
將數字或字串轉換為整數,如果未給定引數則傳回 0。如果 x 是數字,則傳回 x.__int__()。對於浮點數,這會朝零截斷。
如果 x 不是數字或給定了 base,則 x 必須是字串、位元組或位元組陣列實例,表示給定 base 中的整數文字。文字可以加上 '+' 或 '-' 前綴,並以空格包圍。base 預設為 10。有效 base 為 0 和 2-36。Base 0 表示從字串中將 base 解釋為整數文字。 >>> int(‘0b100’, base=0) 4