Is it possible to have overloaded functions in Python?
In C# I would do something like
void myfunction (int first, string second)
{
# Some code
}
void myfunction (int first, string second, float third)
{
# Some different code
}
And then when I call the function it would differentiate between the two based on the number of arguments. Is it possible to do something similar in Python?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…