📜  更改变量类型 python 代码示例

📅  最后修改于: 2022-03-11 14:45:20.496000             🧑  作者: Mango

代码示例1
x = 12
str(x) #it's a String now 

number = "24"
int(number) #it's an integer now