Python 數字轉化爲字符串

num = 322 str = '%d' %num #str即爲num轉換成的字符串   經常使用的格式化字符串: %d  整數 %f   浮點數 %e  科學計數 From:Python學習(2)——字符串與數字轉化python
相關文章
相關標籤/搜索