Python loop with a string, but it cannot be a string. Hard to explain, please check below

后端 未结 0 398
旧巷少年郎
旧巷少年郎 2020-11-21 04:33

The code won\'t execute because in the loop, statement is a string.

mycursor.execute(statement + str(n))  -- > mycursor.execute(\'statement0\') ---> ERR         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题