编辑
2025-05-26
收藏
00

格式

思 想 汇 报 敬爱的党组织: (正文)——————————————————————————————————————————————————————————。 ————————————————————————————————————————————————————————。 此致 敬礼 ( 此 处 空 三 行 左 右 ,写 评 语 用。 ) 汇报人:× × × ××××年××月××日
编辑
2025-05-25
收藏
00

通用代码说明:

  • 校区编码: 本部 01, 威海 02, 深圳 03
  • 主辅修类别: 主修 ZX, 辅修 FX

一、纸质资料

  1. 装订论文:
    • 成绩优秀以下学生: 提交 1 份(由学院存档)。
    • 成绩获优秀毕业设计(论文)学生: 提交 2 份(1 份放入“资料袋”,另 1 份单独提交给导师)。
  2. 资料袋: 内含以下材料(均需单独装订成册):
    • 装订论文 1 份 (若非优秀,则为唯一一份;若优秀,则为两份中的一份)
    • 开题报告
    • 中检报告 (中期报告)
    • 过程管理记录表
    • 月报
编辑
2025-03-31
服务器
00

路由

add_url_rule

实现Methodview

api.py

python
class FileApi(MethodView): """ 后端接口部分 RESTful API风格 """ def __init__(self): super(FileApi, self).__init__() def get(self, fid): """ 查询数据 :param fid: 文件id :return: json """ try: if not fid: files: [File] = File.query.all() results = [ { 'fid': file.fid, 'name': file.name, 'timestamp': file.timestamp, 'type': file.type, 'origin': file.origin, 'width': file.width, 'height': file.height, 'url': file.url } for file in files ] else: file = File.query.get(fid) results = { 'fid': file.fid, 'name': file.name, 'timestamp': file.timestamp, 'type': file.type, 'origin': file.origin, 'width': file.width, 'height': file.height, 'url': file.url } return { 'status': 'success', 'message': '数据查询成功', 'results': results } except Exception as e: return { 'status': 'error', 'message': '数据查询出现异常', 'info': str(e) } def delete(self, fid): """ 删除操作 :param fid: 文件id :return: json """ try: file: File = File.query.get(fid) file.fp = 1 # db.session.delete(file) db.session.commit() return { 'status': 'success', 'message': '数据删除成功', } except Exception as e: return { 'status': 'error', 'message': '数据删除出现异常', 'info': str(e) } def post(self): # 添加数据
编辑
2025-03-22
软件
00
cmd
conda create -n pointcept python=3.8 -y conda activate pointcept conda install ninja -y # Choose version you want here: https://pytorch.org/get-started/previous-versions/ # We use CUDA 11.8 and PyTorch 2.1.0 for our development of PTv3 conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=11.8 -c pytorch -c nvidia conda install h5py pyyaml -c anaconda -y
编辑
2025-03-01
软件
00

自动换行

  • Settings -> Word Wrap

注释

  • 单行:Ctrl + /
  • 块:Alt + Shift + A

python格式化

  • 安装autopep8插件

颜色设置

json
"workbench.colorCustomizations": { "editor.selectionBackground": "#c3f66b48", "editor.background": "#ffffff", "activityBar.background": "#ffffff", "sideBar.background": "#ffffff", "panel.background": "#ffffff", "statusBar.background": "#ffffff", "titleBar.activeBackground": "#ffffff", "editorGroup.emptyBackground": "#ffffff", "tab.activeBackground": "#ffffff", "tab.inactiveBackground": "#ffffff", "tab.activeForeground": "#000000", "tab.inactiveForeground": "#000000", "editorGroupHeader.tabsBackground": "#ffffff", "tab.border": "#ffffff", "tab.activeBorder": "#ef7676" },