如何创建训练

1.准备工作

首先来到训练页面,找到“创建训练计划”的“新训练计划”,点击。

(如果没有,说明你不能创建训练)

2.信息填写

之后,在"标题"一栏中填写标题。

置顶一栏中,0是不置顶,1是置顶。

在"简介"里填写简介。简介不能超过 500 个字符,将显示在列表页面中。不可使用Markdown等。

在"说明"里填写说明。将显示在训练详情页面中,可以使用Markdown等。

3."计划"的配置

1.效果

“计划”采用json语法,这是默认的:

[
  {
    "_id": 1,
    "title": "最初的最初 - A+B Problem",
    "requireNids": [],
    "pids": ["P1000"]
  },
  {
    "_id": 2,
    "title": "最初的进阶",
    "requireNids": [1],
    "pids": [2, 3]
  }
]

效果是这样:

2.语句介绍

其中:"_id":(ID) 是表示章节ID。

"title": "(标题)",是表示章节标题。

"requireNids": [(章节编号),(章节编号)], 表示做完哪个章节才可以来做这个章节。

"pids": [(题目编号),(题目编号)]是训练的题目。

可以用题号或题目ID表示。(注意:题号要用""括起来)

3.增加章节

只需要复制即可。

[
  {
    "_id": 1,
    "title": "章节1",
    "requireNids": [],
    "pids": ["P1000"]
  },
  {
    "_id": 2,
    "title": "章节2",
    "requireNids": [1],
    "pids": [2]
  },
  {
    "_id": 3,
    "title": "章节3",
    "requireNids": [1],
    "pids": [3]
  }
]

注意:要用,隔开。

4.训练的使用

1.参加训练

创建训练后一定要先参加训练!!才能做题!!

2.编辑

可以编辑训练。

3.文件

可以上传文件,在说明可使用 file://文件名 的链接格式引用对应的附件。

4.帮助

提供帮助。

5.状态

未参加/参加

自己的参加情况。

6.参加人数

查看参加人数。

7.创建人

查看创建人。

8.任务列表

查看章节。

9.查看参加用户

这里可以查看参加训练的人的练习情况。

常见问题

1.字段 title 验证失败。

没写标题或标题不合法。

2.字段 pin 验证失败。

没写置顶或置顶不合法。

3.您在该域中无相应权限 (Pin training plans)。

你没有权限置顶训练。

4.字段 content 验证失败。

没写简介或简介不合法。

5.字段 description 验证失败。

没写说明或说明不合法。

6.字段 dag 验证失败。

没写计划或计划不合法。

7.字段 dag 验证失败。 (ProblemNotFoundError: Problem {xxx} not found.)

题目ID或题号不存在。

8.字段 dag 验证失败。 (each node should have a _id)

没写章节id或章节id不合法。

9.字段 dag 验证失败。 (_id must be unique)

章节id重复。

10.字段 dag 验证失败。 (each node shoule have a title)

没写章节标题。

11.字段 dag 验证失败。 (false == true)

没写requireNids或pids。

12.字段 dag 验证失败。 (Expected ',' or '}' after property value in JSON at position xxx)

没写逗号

13.字段 dag 验证失败。 (Expected property name or '}' in JSON at position xxx)

没写双引号。

14.字段 dag 验证失败。 (Expected double-quoted property name in JSON at position xxx)

没写中括号。

15.您在该域中无相应权限 (Create training plans)。

你没有权限创建训练。

0 条评论

目前还没有评论...