Define a function avg, It's acceptable 0 To any number of parameters ( and print Function similarity ).avg The function of a function is to find the average value of its parameters . Be careful , When the number of parameters is zero , There will be an error that the dividend is zero , Will cause the program to crash , So please use try and except, Avoid program crashes , And make avg The average value returned is also zero . such as :