擅长:python、mysql、java
<pre><code> cur.execute("SELECT Name FROM Users where %s=?" % (Id), (uid,))
</code></pre>
<p>也看看这个答案
<a href="https://stackoverflow.com/questions/13880786/python-sqlite3-string-variable-in-execute">Python sqlite3 string variable in execute</a></p>