问题描述
问题: 我不明白我哪里出错了,我应该在哪里更正我的代码。如果有人得到解决方案,请帮助。
我的代码:
def myfunc(*args):
#take entries
my_list=list()
formula=2*(args)+5
#make loop for entering in formula
for i in args:
print('{}/n'.format(formula))
return formula
错误:
Traceback (most recent call last)
----> 1 myfunc([2,4,5])
in myfunc(*args)
2 #take entries
3 my_list=list()
----> 4 formula=2*(args)+5
6 for i in args:
7 return formula
TypeError: can only concatenate tuple (not "int") to tuple
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)