📜  什么是 Python 的动态类型系统 - Python 代码示例

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

代码示例1
Python is strongly, dynamically typed.

Strong typing means that the type of a value doesn't change in unexpected ways. A string containing only digits doesn't magically become a number, as may happen in Perl. Every change of type requires an explicit conversion.
Dynamic typing means that runtime objects (values) have a type, as opposed to static typing where variables have a type.