使用str()将数字转换为字符串. 示例. 在本示例中,我们将使用Python中的string()方法将数字转换为字符串–. # 待转换的整数 n = 150 # 显示整数及其类型 print("整数= " ...
確定! 回上一頁