📜  如何在 python 代码示例中使函数输入可选

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

代码示例2
# Define a default value to the variable.
def function(required_variable, optional_variable = "1"):