可以,我们可以使用键=值的这种语法形式传递参数,这样,参数的顺序就无关紧要了。def my_function(fruit1,fruit2,fruit3): print("The fruit name is " + fruit2)#调用函数my_function(fruit1="apple",fruit2="orange",fruit3="banana")执行结果:The fruit name is orange