以下函数在sqlite3中创建一个表: mycursor.execute('''CREATE TABLE IF NOT EXISTS ch_details, oth_de REAL DEFAULT 0, ch_amt REAL DEFAULT 0, mem_id TEXT,但是,当我试图通过使用以下代码提供特定的月/年来存储此表中</em
我正在尝试过滤从.csv文件中检索到的日期,但我尝试的组合似乎都不起作用。日期为"2011-10-01 19:25:01“或”年-月-日小时:分:秒“。我只想要年、月和日期,但我似乎无法从字符串中获得时间:date = date.replace)
re.split('$[\d]+',mdate) # trying to get rid of the trailing set of