corentin.bollet
1 year ago
1 changed files with 11 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
import sqlite3 |
|||
|
|||
class BaseDeDonnee: |
|||
def __init__(self): |
|||
self.con = sqlite3.cursor("table_personnages.db") |
|||
self.cur = self.con.cursor() |
|||
|
|||
self.cur.execute("CREATE TABLE persos (nom)") |
|||
|
|||
self.con.commit() |
|||
self.con.close() |
Loading…
Reference in new issue