Python 动态输入
概念检查 中等
题目
In Python, what happens when you run `x = 10` followed by `x = "hello"`?
提示
Python 是 dynamically 输入.
解释
Python is dynamically typed, which means a variable can hold values of different types at different times. When you run x = "hello", the variable x simply points to the new string value. No error occurs. This is different from statically typed languages like Java, where each variable has a fixed type.
相关资源
相关课程
- Python 数据类型
学习关于 Python 数据类型 and 动态输入.
相关速查表
- Python Cheatsheet
快速引用 for Python 数据类型.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。