我们提供招生管理系统招投标所需全套资料,包括招生系统介绍PPT、招生管理系统产品解决方案、
招生管理系统产品技术参数,以及对应的标书参考文件,详请联系客服。

import pymysql
def init_database():
connection = pymysql.connect(host='localhost', user='root', password='password', db='admission_system')
cursor = connection.cursor()
cursor.execute("""
CREATE TABLE IF NOT EXISTS students (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(50) NOT NULL,
gender ENUM('M', 'F') DEFAULT 'M',
phone VARCHAR(15),
email VARCHAR(100)
);
""")
connection.commit()
connection.close()
if __name__ == "__main__":
init_database()
这段代码会创建一个名为`students`的基本学生信息表。