Python中數字轉化為字符串
- 報錯的寫法
### 這樣直接轉換會報錯
num_te = 88888
print(str(num_te))
# 錯誤信息
# TypeError: 'str' object is not callable
- 修改后的寫法
num_te = 88888
print('%d'%num_te, type('%d'%num_te))
# 結果 =====>成功轉化為了str類型
# 88888 <class 'str'>
詳細內容請參考: https://blog.csdn.net/bigsea622/article/details/82703190