I have not used * operation to duplicate string until recently:
valueStr2 "( %s" + ",%s"*(len(dict)-1)+")"
rather than the following c-type implementation
tempL = []
for i in dict.keys():
tempL.append("%s")
valueStr2 = "(" + ",".join(tempL)+")"
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment