python 讀整數(shù)
2024-02-15 17:10:17
```python
number = int(input("請(qǐng)輸入個(gè)整數(shù): "))
print(number)
```
這段代碼會(huì)提示用戶輸入個(gè)整數(shù),將其存儲(chǔ)在變量`number`中。
```python
number = int(input("請(qǐng)輸入個(gè)整數(shù): "))
print(number)
```
這段代碼會(huì)提示用戶輸入個(gè)整數(shù),將其存儲(chǔ)在變量`number`中。