如何使用返回多个值作为格式字符串输入的函数,而不获取TypeError: not enougharguments for formatstring错误?print "%d,%d,%d" % foo(), 3 File "<stdin>", line 1, in <module>
TypeError: not enough
/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 861, in emit
msg = self.format/2.7.12_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 734
employees where employee_name like '%s%'" % (name)ValueError: unsupported format"hello '%s\%'" % ('world') File "<stdin>", line 1, in <module>
TypeError
format_fname = ','.join(['%s'] * len(stFirstnames))
curDox.execute("SELECT * FROM user WHERE firstname IN (%s) AND lastname IN (%s)" % format_fname,tuple(stFirstnames), <e