📜  如何在 Python 中转换变量? - Python 代码示例

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

代码示例1
Test = 12 # integer 
Converter = float(Test) # Converter = 12.0
Converter = str(Test) # Converter = "12.0"
Converter = int(Test) # Converter = 12