函数定义修改格式添加“_”

def func(*arg):
sum = ""
for i in arg:
sum = sum + str(i) + "_"
sum = sum.strip("_")
return sum
print(func([1,"alex", "wusie"]))
posted @ 2019-11-06 15:32  冰灬荷  阅读(152)  评论(0编辑  收藏  举报