1、项目说明
基于python+Flask+mysql的学生信息管理系统项目实战

项目需要安装pycharm专业版,mysql数据库以及项目所需的所有模块
创建数据库名称db_online_notes,然后执行sql文件生成数据表和数据

项目需要安装 flask,pymysql以及其他的一些模块
安装命令如下:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 模块名称
如安装flask:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flask

2、项目主要技术
python编程技术
flask框架技术
mysql数据库技术
html编程
css编程
js编程

3、项目结构
static 项目静态文件存储文件夹(images,css,js)
templates 项目模板文件文件夹(html)
log.txt 错误日志存放文件
forms.py 表单验证对象
mysql_util.py 数据库链接操作
manage.py 项目功能业务逻辑实现(项目入口)

4、项目主要功能
用户登录注册
文章信息的增删改查

5、部分源码

from flask import Flask, render_template, request, redirect, session, jsonify, url_for
from flask_sqlalchemy import SQLAlchemy
from werkzeug.utils import secure_filename
import os,shutil
import random
import json
import pymysql
import logging
import math
from operator import or_ from exts.QueryPaginate import QueryPaginate app = Flask(__name__,static_folder='')
app.config['DEBUG']=True
#配置session key
app.config['SECRET_KEY'] = '2cf0fa7e-48d9-11e6-93fb-c03fd53413ef' #SQLAlchemy相关配置
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:root@localhost:3306/student'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SQLALCHEMY_ECHO'] = False # 创建组件对象
db = SQLAlchemy(app) #**********配置初始系统变量**********
data = {}
data['SYSNAME']='毕业设计 - 学生信息管理系统'
data['DEVURL']='http://www.wwww.com/'
data['DEVNAME']='上海交大' #**********数据库配置********** #学生表
class TStudent(db.Model):
__tablename__ = 't_student'
id = db.Column(db.Integer, primary_key=True)
student_no = db.Column(db.String(20))
student_name = db.Column(db.String(100))
department_no = db.Column(db.String(20)) #课程表
class TCourse(db.Model):
__tablename__ = 't_course'
id = db.Column(db.Integer, primary_key=True)
course_no = db.Column(db.String(20))
course_name = db.Column(db.String(100)) #成绩表
class TGrade(db.Model):
__tablename__ = 't_grade'
id = db.Column(db.Integer, primary_key=True)
student_no = db.Column(db.String(20))
course_no = db.Column(db.String(20))
grade = db.Column(db.String(10)) #用户表
class TUser(db.Model):
__tablename__ = 't_user'
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(20))
password = db.Column(db.String(20))
realname = db.Column(db.String(20)) #学院表
class TDepartment(db.Model):
__tablename__ = 't_department'
id = db.Column(db.Integer, primary_key=True)
department_no = db.Column(db.String(20))
department_name = db.Column(db.String(20)) #**********路由部分********** #首页
@app.route('/')
@app.route('/index')
def index(): if(checkSignIn()==False):
return redirect('/signin') studentCount = db.session.query(TStudent).count()
courseCount = db.session.query(TCourse).count()
userCount = db.session.query(TUser).count()
gradeCount = db.session.query(TGrade).count() data['studentCount']= studentCount
data['courseCount']= courseCount
data['userCount']= studentCount
data['gradeCount']= gradeCount studentData = db.session.query(TStudent,TDepartment).outerjoin(TDepartment, TStudent.department_no==TDepartment.department_no).order_by(TStudent.id.desc()).limit(10).all()
print(studentData)
data['studentData']=studentData userData = db.session.query(TUser).order_by(TUser.id.desc()).limit(10).all()
data['userData']=userData return render_template('index.html', **data)
'''
#首页
@app.route('/index')
def index2(): if(checkSignIn()==False):
return redirect('/signin') return render_template('index.html', **data)
'''
#用户登录模块
@app.route('/signin',methods=['GET','POST'])
def signin(): return render_template('sign-in.html',form=data) #用户退出模块
@app.route('/signout',methods=['GET','POST'])
def signout():
session.clear()
#return redirect('/signin')
return redirect(url_for('signin')) #用户登录验证
@app.route('/dosignin',methods=['GET','POST'])
def dosignin(): userName = request.values.get('userName')
userPass = request.values.get('userPass') logging.info(request.remote_addr)#记录日志
print(request.headers)#头文件
print(request.remote_addr)#远程IP地址 user = db.session.query(TUser).filter(TUser.username == userName,
TUser.password == userPass
).first() if(user is not None):
session['userName']=userName
print(session)
return redirect('/')
else:
data['errorMessage']='用户名或密码不正确!'
return render_template('signin.html',form=data) #用户注册模块
@app.route('/signup',methods=['GET','POST'])
def signup(): return render_template('sign-up.html',form=data) #学生信息部分开始************************************ #查看列表带分页
@app.route('/students/',methods=['GET','POST'])
def students(): studentNo = request.form.get('studentNo') if request.form.get('studentNo') is not None else ''
studentName = request.form.get('studentName') if request.form.get('studentName') is not None else ''
data['studentNo']=studentNo
data['studentName']=studentName page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1 query = db.session.query(TStudent).filter(or_(TStudent.student_no == studentNo, studentNo == ''),
or_(TStudent.student_name.like('%{0}%'.format(studentName)),studentName == '')
)
queryPaginate = QueryPaginate(query,10,page) data['currdata']=queryPaginate.items
data['pagelist']=queryPaginate.iter_pages()
data['pages']=queryPaginate.pages
data['page']=queryPaginate.page
data['per_page']=queryPaginate.per_page
data['prev_num']=queryPaginate.prev_num
data['next_num']=queryPaginate.next_num return render_template('students.html',**data) #查看单个信息
@app.route('/student/<int:studentid>',methods=['GET','POST'])
def student(studentid):
data['studentid']=studentid currdata = db.session.query(TStudent).filter(TStudent.id==studentid).first()
data['currdata'] = currdata
return render_template('student.html',**data) #编辑单个信息
@app.route('/student/edit/<int:studentid>',methods=['GET'])
def student_edit(studentid): currdata = db.session.query(TStudent).filter(TStudent.id==studentid).first()
print(currdata)
data['currdata'] = currdata
return render_template('student_edit.html',**data) #编辑保存单个信息
@app.route('/student/doedit/',methods=['POST'])
def student_doedit():
studentid = request.form.get('studentid')
studentNo = request.form.get('studentNo')
studentName = request.form.get('studentName') update_dict = {}
if(studentNo is not None):
update_dict['student_no']=studentNo
if(studentName is not None):
update_dict['student_name']=studentName db.session.query(TStudent).filter_by(id=studentid).update(update_dict)
db.session.commit()
print(data)
return redirect(url_for('students')) #删除单个信息
@app.route('/student/del/<int:studentid>',methods=['GET'])
def student_del(studentid):
db.session.query(TStudent).filter_by(id=studentid).delete()
db.session.commit() return redirect(url_for('students')) #删除单个信息
@app.route('/student/dodel/',methods=['POST'])
def student_dodel(studentid): db.session.query(TStudent).filter_by(id=studentid).delete()
db.session.commit()
return redirect(url_for('students')) #保存单个信息
@app.route('/student/add',methods=['GET'])
def student_add(): return render_template('student_add.html',form=data) #保存单个信息
@app.route('/student/doAdd',methods=['POST'])
def student_doadd():
studentNo = request.form.get('studentNo')
studentName = request.form.get('studentName')
print(request.form)
student = TStudent(student_no=studentNo,student_name=studentName)
db.session.add(student)
db.session.commit() return redirect(url_for('students')) #学生信息部分结束************************************ #课程信息部分开始************************************ #查看列表带分页
@app.route('/courses/',methods=['GET','POST'])
def courses(): courseNo = request.form.get('courseNo') if request.form.get('courseNo') is not None else ''
courseName = request.form.get('courseName') if request.form.get('courseName') is not None else ''
data['courseNo']=courseNo
data['courseName']=courseName page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1 query = db.session.query(TCourse).filter(or_(TCourse.course_no == courseNo, courseNo == ''),
or_(TCourse.course_name.like('%{0}%'.format(courseName)),courseName == '')
)
queryPaginate = QueryPaginate(query,10,page) data['currdata']=queryPaginate.items
data['pagelist']=queryPaginate.iter_pages()
data['pages']=queryPaginate.pages
data['page']=queryPaginate.page
data['per_page']=queryPaginate.per_page
data['prev_num']=queryPaginate.prev_num
data['next_num']=queryPaginate.next_num return render_template('courses.html',**data) #查看单个信息
@app.route('/course/<int:courseid>',methods=['GET','POST'])
def course(courseid):
data['courseid']=courseid currdata = db.session.query(TCourse).filter(TCourse.id==courseid).first()
data['currdata'] = currdata
return render_template('course.html',**data) #编辑单个信息
@app.route('/course/edit/<int:courseid>',methods=['GET'])
def course_edit(courseid): currdata = db.session.query(TCourse).filter(TCourse.id==courseid).first()
print(currdata)
data['currdata'] = currdata
return render_template('course_edit.html',**data) #编辑保存单个信息
@app.route('/course/doedit/',methods=['POST'])
def course_doedit():
courseid = request.form.get('courseid')
courseNo = request.form.get('courseNo')
courseName = request.form.get('courseName') update_dict = {}
if(courseNo is not None):
update_dict['course_no']=courseNo
if(courseName is not None):
update_dict['course_name']=courseName db.session.query(TCourse).filter_by(id=courseid).update(update_dict)
db.session.commit()
print(data)
return redirect(url_for('courses')) #删除单个信息
@app.route('/course/del/<int:courseid>',methods=['GET'])
def course_del(courseid):
db.session.query(TCourse).filter_by(id=courseid).delete()
db.session.commit() return redirect(url_for('courses')) #删除单个信息
@app.route('/course/dodel/',methods=['POST'])
def course_dodel(courseid): db.session.query(TCourse).filter_by(id=courseid).delete()
db.session.commit()
return redirect(url_for('courses')) #保存单个信息
@app.route('/course/add',methods=['GET'])
def course_add(): return render_template('course_add.html',form=data) #保存单个信息
@app.route('/course/doAdd',methods=['POST'])
def course_doadd():
courseNo = request.form.get('courseNo')
courseName = request.form.get('courseName')
print(request.form)
course = TCourse(course_no=courseNo,course_name=courseName)
db.session.add(course)
db.session.commit() return redirect(url_for('courses')) #课程信息部分结束************************************ #成绩信息部分开始************************************
@app.route('/grades/',methods=['GET','POST'])
def grades():
studentNo = request.form.get('studentNo') if request.form.get('studentNo') is not None else ''
studentName = request.form.get('studentName') if request.form.get('studentName') is not None else ''
courseNo = request.form.get('courseNo') if request.form.get('courseNo') is not None else ''
courseName = request.form.get('courseName') if request.form.get('courseName') is not None else '' data['studentNo']=studentNo
data['studentName']=studentName
data['courseNo']=courseNo
data['courseName']=courseName page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1 query = db.session.query(TGrade,TStudent,TCourse).outerjoin(TStudent, TStudent.student_no==TGrade.student_no).outerjoin(TCourse,TCourse.course_no==TGrade.course_no).filter(or_(TCourse.course_no == courseNo, courseNo == ''),
or_(TCourse.course_name.like('%{0}%'.format(courseName)),courseName == ''),
or_(TStudent.student_no == studentNo, studentNo == ''),
or_(TStudent.student_name.like('%{0}%'.format(studentName)),studentName == '')
)
#print(query)
queryPaginate = QueryPaginate(query,10,page)
#print(queryPaginate.items)
data['currdata']=queryPaginate.items
data['pagelist']=queryPaginate.iter_pages()
data['pages']=queryPaginate.pages
data['page']=queryPaginate.page
data['per_page']=queryPaginate.per_page
data['prev_num']=queryPaginate.prev_num
data['next_num']=queryPaginate.next_num return render_template('grades.html',**data) #保存单个信息
@app.route('/grade/add',methods=['GET'])
def grade_add(): studentdata = db.session.query(TStudent).all()
data['studentdata']=studentdata coursedata = db.session.query(TCourse).all()
data['coursedata']=coursedata return render_template('grade_add.html',**data) #保存单个信息
@app.route('/grade/doAdd',methods=['POST'])
def grade_doadd():
courseNo = request.form.get('courseNo')
studentNo = request.form.get('studentNo')
grade = request.form.get('grade') grade = TGrade(course_no=courseNo,student_no=studentNo,grade=grade)
db.session.add(grade)
db.session.commit() return redirect(url_for('grades')) #删除单个信息
@app.route('/grade/del/<int:gradeid>',methods=['GET'])
def grade_del(gradeid):
db.session.query(TGrade).filter_by(id=gradeid).delete()
db.session.commit() return redirect(url_for('grades')) #成绩信息部分结束************************************ #用户信息部分开始************************************ #查看列表
@app.route('/users',methods=['GET','POST'])
def users(): userName = request.form.get('userName') if request.form.get('userName') is not None else ''
realName = request.form.get('realName') if request.form.get('realName') is not None else '' data['userName']=userName
data['realName']=realName page = int(request.form.get('search_page')) if request.form.get('search_page') is not None and request.form.get('search_page') != '0' else 1 query = db.session.query(TUser).filter(or_(TUser.username == userName, userName == ''),
or_(TUser.realname.like('%{0}%'.format(realName)),realName == '')
)
print(query)
queryPaginate = QueryPaginate(query,10,page)
#print(queryPaginate.items)
data['currdata']=queryPaginate.items
data['pagelist']=queryPaginate.iter_pages()
data['pages']=queryPaginate.pages
data['page']=queryPaginate.page
data['per_page']=queryPaginate.per_page
data['prev_num']=queryPaginate.prev_num
data['next_num']=queryPaginate.next_num return render_template('users.html',**data) #查看单个信息
@app.route('/user/<int:userid>',methods=['GET','POST'])
def user(userid):
data['userid']=userid
print(data)
return render_template('user.html',form=data) #保存单个信息
@app.route('/user/add',methods=['GET'])
def user_add(): return render_template('user_add.html',**data) #保存单个信息
@app.route('/user/doAdd',methods=['POST'])
def user_doadd():
username = request.form.get('username')
password = request.form.get('password')
realname = request.form.get('realname') user = TUser(username=username,password=password,realname=realname)
db.session.add(user)
db.session.commit() return redirect(url_for('users')) #编辑单个信息
@app.route('/user/edit/<int:userid>',methods=['GET'])
def user_edit(userid): currdata = db.session.query(TUser).filter(TUser.id==userid).first()
print(currdata)
data['currdata'] = currdata
return render_template('user_edit.html',**data) #编辑保存单个信息
@app.route('/user/doedit/',methods=['POST'])
def user_doedit():
userid = request.form.get('userid')
username = request.form.get('username')
password = request.form.get('password')
realname = request.form.get('realname') update_dict = {}
if(username is not None):
update_dict['username']=username
if(password is not None):
update_dict['password']=password
if(realname is not None):
update_dict['realname']=realname db.session.query(TUser).filter_by(id=userid).update(update_dict)
db.session.commit()
print(data)
return redirect(url_for('users')) #删除单个信息
@app.route('/user/del/<int:userid>',methods=['GET'])
def user_del(userid):
db.session.query(TUser).filter_by(id=userid).delete()
db.session.commit() return redirect(url_for('users')) #用户信息部分结束************************************ #用户设置部分结束************************************ #编辑单个信息
@app.route('/user/set/<username>',methods=['GET'])
def user_set(username): currdata = db.session.query(TUser).filter(TUser.username==username).first()
print(currdata)
data['currdata'] = currdata
return render_template('user_set.html',**data) #编辑保存单个信息
@app.route('/user/doset/',methods=['POST'])
def user_doset():
userid = request.form.get('userid')
username = request.form.get('username')
password = request.form.get('password')
realname = request.form.get('realname') update_dict = {}
if(username is not None):
update_dict['username']=username
if(password is not None):
update_dict['password']=password
if(realname is not None):
update_dict['realname']=realname db.session.query(TUser).filter_by(id=userid).update(update_dict)
db.session.commit()
print(data)
return redirect(url_for('users'))
#用户设置部分结束************************************ @app.route('/faq',methods=['GET','POST'])
def faq(): return render_template('faq.html',**data) @app.route('/help',methods=['GET','POST'])
def help(): return render_template('help.html',**data) @app.route('/calendar',methods=['GET','POST'])
def calendar(): return render_template('calendar.html',form=data) @app.route('/media',methods=['GET','POST'])
def media(): return render_template('media.html',**data) @app.route('/theory',methods=['GET','POST'])
def theory(): return render_template('theory.html',**data) @app.route('/privacy-policy',methods=['GET','POST'])
def privacypolicy(): return render_template('privacy-policy.html',**data) @app.route('/terms-and-conditions',methods=['GET','POST'])
def termsandconditions(): return render_template('terms-and-conditions.html',**data) #系统级报警路由
@app.errorhandler(403)
def error403(): return render_template('403.html',form=data) @app.errorhandler(404)
def error404(error): return render_template('404.html',form=data) @app.errorhandler(500)
def error500(): return render_template('500.html',form=data) @app.errorhandler(503)
def error503(): return render_template('503.html',form=data) #**********测试用路由********** @app.route('/jsontest')
def jsonTest(): jsonStr = '{"name":"张三","age":"33"}'
jsonData = json.loads(jsonStr)
print(jsonData['name']) data={"name":"张三","age":"33"}
print (json.dumps(data,ensure_ascii=False))
#return jsonify(data)
return jsonify(name="张三",age=34) @app.route('/mysqltest')
def mysqlTest():
cursor = db.cursor()
try:
mySql = "select * from kelly limit 10"
cursor.execute(mySql)
data = cursor.fetchall()
except Exception as e:
print("Error: ",e)
return jsonify(data) #**********方法部分**********
#检测登录状态
def checkSignIn():
#if(session.get('userName') is None or session.get('userName')==''):
if('userName' not in session):
return False
else:
return True #**********通用方法部分********** if __name__ == "__main__":
app.run(host='0.0.0.0',debug=False,port=8088)
#app.run(host='127.0.0.1',debug=False,port=8082)

6、运行截图

7、项目总结

本项目是一个非常适合练手的项目,对我们的python编程和对flask框架的了解和提升都有很大的帮助,推荐大家学习研究这个项目,搞懂其中的原理流程以及知识点非常关键。

资料获取地址:https://item.taobao.com/item.htm?spm=a21dvs.23580594.0.0.4fee3d0dmeAXHu&ft=t&id=713204492149

B站视频讲解地址:

注:其他问题请参看视频讲解,都有介绍,一定要认真看完哦!

代码编写、视频录制不易,感谢您的支持,祝您学习愉快!

 

【Python毕业设计】基于Python+Flask+MySQL的学生信息管理系统(附完整源码)的更多相关文章

  1. 学生信息管理系统应用ios源码iPad版

    学生信息管理系统应用iPad版,该应用源码比较完整的,而且也很详细,这也是一款学校用的学生和老师管理系统,里面涉及到了很多ipad常用的控件,操作和数据存储. <ignore_js_op> ...

  2. 基于数组或链表的学生信息管理系统(小学期C语言程序实训)

    1.基于数组的学生信息管理系统 实验内容: 编写并调试程序,实现学校各专业班级学生信息的管理.定义学生信息的结构体类型,包括:学号.姓名.专业.班级.3门成绩. 实验要求: (1) main函数:以菜 ...

  3. 基于spring-boot和docker-java实现对docker容器的动态管理和监控[附完整源码下载]

    ​ (我是个封面) docker简介 Docker 是一个开源的应用容器引擎,和传统的虚拟机技术相比,Docker 容器性能开销极低,因此也广受开发者喜爱.随着基于docker的开发者越来越多,doc ...

  4. (一 、上)搭建简单的SpringBoot + java + maven + mysql + Mybatis+通用Mapper 《附项目源码》

    最近公司一直使用 springBoot 作为后端项目框架, 也负责搭建了几个新项目的后端框架.在使用了一段时间springBoot 后,感觉写代码 比spring 更加简洁了(是非常简洁),整合工具也 ...

  5. (转载)基于Unity~UGUI的简单UI框架(附UIFramework源码)

    此博客跟随siki老师的课程笔记生成,感谢siki老师的辛勤付出! 此框架功能较简单,适用于学习,可以很好的锻炼我们的设计思想 框架源码地址: UIFramework litjson.dll下载地址: ...

  6. 基于JSP+Servlet的学生信息管理系统

    JavaWeb期末项目,一个基于JSP和Servlet的学生信息管理系统实现,前端用了bootstrap和一些自定义的css样式,数据库用了mysql 传送门: GitHub 实现功能 登录(教师, ...

  7. [项目分享]JSP+Servlet+JDBC实现的学生信息管理系统

    本文存在视频版本,请知悉 项目简介 项目来源于:https://gitee.com/liu_xu111/JavaWeb01 这次分享一个学生管理系统,我感觉这是程序员在大学时期的毕设和课程设计选择最多 ...

  8. Python基础案例练习:制作学生信息管理系统

    一.前言 学生信息管理系统,相信大家或多或少都有做过 最近看很多学生作业都是制作一个学生信息管理系统 于是,今天带大家做一个简单的学生信息管理系统 二.开发环境: 我用到的开发环境 Python 3. ...

  9. 基于数据库MySQL的简易学生信息管理系统

    通过这几天学习Mysql数据库,对其也有了基本的了解,为了加深印象,于是就写了一个最简易的学生信息管理系统. 一:基本要求 1.通过已知用户名和密码进行登录: 2.可以显示菜单: 3.可以随时插入学生 ...

  10. Python学生信息管理系统的开发

    # 第一题:设计一个全局变量,来保存很多个学生信息:学生(学号, 姓名,年龄):思考要用怎样的结构来保存:# 第二题:在第一题基础上,完成:让用户输入一个新的学生信息(学号,姓名,年龄):你将其保存在 ...

随机推荐

  1. 记录一次mybatis pagehelper count order by 不生效

    https://sample.blog.csdn.net/article/details/119216433?spm=1001.2101.3001.6650.5&utm_medium=dist ...

  2. psq强制携带-h

    背景: pg更新后psql 指令必须携带 -h指令,导致很多直接使用"psql"的shell脚本无法连接. 方案: 1.挨个更新调用psql的地方: 显然太多了,改不过来. 2.新 ...

  3. Centos6、7修改主机名

    centos6 1.临时修改 hostname node1 2.永久生效 , 修改/etc/sysconfig/network 文件 HOSTNAME=node1 3.修改 /etc/hosts文件 ...

  4. 1 关于win10原生系统下 OCRmyPDF安装使用

    win10原生系统下 OCRmyPDF安装使用长期以来一直在代替freepic2pdf的工具,因为在图片转化PDF时,如果没有勾选该软件 添加OCR层 选项,印象中事后无法挂OCR层上去.福昕风腾,A ...

  5. Android笔记--发送彩信

    发送彩信 界面还是那个界面,图片也实现了从相册进行选择图片,选择完成之后,就会回到界面里面的功能: 下面接着实现发送彩信的完整版: 具体实现如下: 界面代码不再展示,主要着重于后台的代码编写啦! 1. ...

  6. SpringBoot笔记--事件监听+启动流程+监控+项目部署

    事件监听 ApplicationContextInitializer SpringApplicationRunListener ApplicationRunner CommandLineRunner ...

  7. MySQL学习(一)大纲

    1.逻辑架构 参考博客:https://blog.csdn.net/fuzhongmin05/article/details/70904190 最上层为客户端层,并非mysql独有,诸如:连接处理.授 ...

  8. Cesium渲染模块之Command

    1. 引言 Cesium是一款三维地球和地图可视化开源JavaScript库,使用WebGL来进行硬件加速图形,使用时不需要任何插件支持,基于Apache2.0许可的开源程序,可以免费用于商业和非商业 ...

  9. Three.js 进阶之旅:物理效果-3D乒乓球小游戏 🏓

    声明:本文涉及图文和模型素材仅用于个人学习.研究和欣赏,请勿二次修改.非法传播.转载.出版.商用.及进行其他获利行为. 摘要 本文在专栏上一篇内容<Three.js 进阶之旅:物理效果-碰撞和声 ...

  10. 【Unity3D】基于粒子系统实现烟花特效

    1 需求实现 ​ 粒子系统ParticleSystem 中介绍了粒子初始化.粒子发射.发射器形状.渲染器.碰撞.子发射器.拖尾等粒子系统的基本用法,本节将基于粒子系统实现烟花特效. ​ 实现需求如下( ...