def get_max_and_min(*args):
args = list(args) #这里要注意,传入的多个参数会被重组成一个元组
for i in range(0, len(args)-1):
for j in range(0, len(args)-1-i):
if args[j] > args[j+1]:
args[j], args[j+1] = args[j+1], args[j]
print(args)
get_max_and_min(1,32,5,78,9,10,2,6)