mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Run 2to3 over Doc/lib/sqlite3/.
This commit is contained in:
parent
b942d28bf5
commit
45d569b823
22 changed files with 43 additions and 43 deletions
|
@ -11,10 +11,10 @@ now = datetime.datetime.now()
|
|||
cur.execute("insert into test(d, ts) values (?, ?)", (today, now))
|
||||
cur.execute("select d, ts from test")
|
||||
row = cur.fetchone()
|
||||
print today, "=>", row[0], type(row[0])
|
||||
print now, "=>", row[1], type(row[1])
|
||||
print(today, "=>", row[0], type(row[0]))
|
||||
print(now, "=>", row[1], type(row[1]))
|
||||
|
||||
cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"')
|
||||
row = cur.fetchone()
|
||||
print "current_date", row[0], type(row[0])
|
||||
print "current_timestamp", row[1], type(row[1])
|
||||
print("current_date", row[0], type(row[0]))
|
||||
print("current_timestamp", row[1], type(row[1]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue