sqlite 查询条件如何用变量值?

使用的sqlite3数据库,我想查询特定rowid的数据:
i=1
while i<10:
i+=1
cur.execute('select * from user where rowid=i')

请问如何能将变量 i 的值输入到select语句中

cur.execute('select * from user where rowid={}'.format(i))