import sqlite3 conn = sqlite3.connect('cms.db') c = conn.cursor() c.execute( "INSERT INTO nav_menus (name, link, sort_order, is_enabled, is_external, parent_id) VALUES (?, ?, ?, ?, ?, ?)", ('公司介绍', '/about/company', 1, 1, 0, 4) ) c.execute( "INSERT INTO nav_menus (name, link, sort_order, is_enabled, is_external, parent_id) VALUES (?, ?, ?, ?, ?, ?)", ('团队风采', '/about/team', 2, 1, 0, 4) ) conn.commit() conn.close() print('test submenus inserted')