Day: March 13, 2022

sqlite3

# Create db, table, insert into table, select from table import sqlite3 sql_con = sqlite3.connect('db/test.db') # If db doesn't exist…

datetime

from datetime import datetime now = datetime.now() print(now.strftime("%a")) # Sun print(now.strftime("%A")) # Sunday print(now.strftime("%w")) # 0, 0=sunday, 1=Monday... print(now.strftime("%d")) #…