0
我使用此代碼從sqlite行獲取所有數據,但我只想檢索最後30個條目。只使用python檢索SQLITE中一行的最後一個值27
import sqlite3
from matplotlib import pyplot
fig = pyplot.figure()
con = sqlite3.connect('growll.db')
con.text_factory = str
cur = con.cursor()
cur.execute("select temp from GrowLLDados")
ar=[r[0] for r in cur.fetchall()]
一個如何定義「最後」? –