📜  python 默认输入 - Python 代码示例

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

代码示例1
# Python 3:
age = input('Enter your age: ') or 18

# Older versions:
age = int(raw_input('Enter your age: ') or 18)