def init_all_dbs():
    '\n    call it when creating database\n    :return:\n    '
    conn = sqlite3.connect(DB_PATH)
    cursor = conn.cursor()
    exec_sql = 'create table Question (id INTEGER primary key, content text, user VARCHAR(20), date VARCHAR(30))'
    cursor.execute(exec_sql)
    exec_sql = 'create table People (id INTEGER primary key, question_id INTEGER, content text, user VARCHAR(20), date VARCHAR(30))'
    cursor.execute(exec_sql)
    conn.commit()
    conn.close()
call it when creating database
:return:
def init_all_dbs():
    '\n    call it when creating database\n    :return:\n    '
    conn = sqlite3.connect(DB_PATH)
    cursor = conn.cursor()
    exec_sql = 'create table Question (id INTEGER primary key, content text, user VARCHAR(20), date VARCHAR(30))'
    cursor.execute(exec_sql)
    exec_sql = 'create table People (id INTEGER primary key, question_id INTEGER, content text, user VARCHAR(20), date VARCHAR(30))'
    cursor.execute(exec_sql)
    conn.commit()
    conn.close()