update
This commit is contained in:
@@ -98,7 +98,7 @@ onMounted(init)
|
|||||||
v-model:value="announcement.content"
|
v-model:value="announcement.content"
|
||||||
:min-height="200"
|
:min-height="200"
|
||||||
/>
|
/>
|
||||||
<n-flex style="margin-bottom: 100px;" justify="end">
|
<n-flex style="margin-bottom: 100px" justify="end">
|
||||||
<n-button type="primary" @click="submit">保存</n-button>
|
<n-button type="primary" @click="submit">保存</n-button>
|
||||||
</n-flex>
|
</n-flex>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ onMounted(getContestDetail)
|
|||||||
v-model:value="contest.description"
|
v-model:value="contest.description"
|
||||||
:min-height="200"
|
:min-height="200"
|
||||||
/>
|
/>
|
||||||
<n-flex style="margin-bottom: 100px;" justify="end">
|
<n-flex style="margin-bottom: 100px" justify="end">
|
||||||
<n-button type="primary" @click="submit">保存</n-button>
|
<n-button type="primary" @click="submit">保存</n-button>
|
||||||
</n-flex>
|
</n-flex>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -511,7 +511,7 @@ watch(
|
|||||||
</n-flex>
|
</n-flex>
|
||||||
</template>
|
</template>
|
||||||
</n-alert>
|
</n-alert>
|
||||||
<n-space style="margin-bottom: 100px;" justify="space-between">
|
<n-space style="margin-bottom: 100px" justify="space-between">
|
||||||
<n-form inline label-placement="left" :show-feedback="false">
|
<n-form inline label-placement="left" :show-feedback="false">
|
||||||
<n-form-item label="语言">
|
<n-form-item label="语言">
|
||||||
<n-checkbox-group v-model:value="problem.languages">
|
<n-checkbox-group v-model:value="problem.languages">
|
||||||
|
|||||||
@@ -15,16 +15,17 @@ print("China")
|
|||||||
print(“China”)
|
print(“China”)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## 第三:下面的写法是等价的
|
## 第三:下面的写法是等价的
|
||||||
|
|
||||||
### 第一种:
|
### 第一种:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
a="China"
|
a="China"
|
||||||
print(a)
|
print(a)
|
||||||
```
|
```
|
||||||
|
|
||||||
### 第二种:
|
### 第二种:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
print("China")
|
print("China")
|
||||||
```
|
```
|
||||||
@@ -45,4 +46,4 @@ print("你好")
|
|||||||
print("程旭", "赵铖洋", "於锦诚", "叶小斌", "洋芋头", "池涛涛")
|
print("程旭", "赵铖洋", "於锦诚", "叶小斌", "洋芋头", "池涛涛")
|
||||||
```
|
```
|
||||||
|
|
||||||
在右边的代码中找找茬吧,Let's GO
|
在右边的代码中找找茬吧,Let's GO
|
||||||
|
|||||||
@@ -45,4 +45,4 @@ print(a-3)
|
|||||||
```
|
```
|
||||||
|
|
||||||
输入:3.14
|
输入:3.14
|
||||||
输出:0.14
|
输出:0.14
|
||||||
|
|||||||
@@ -48,4 +48,4 @@ n=input().split()
|
|||||||
|
|
||||||
a=float(n[0])
|
a=float(n[0])
|
||||||
b=float(n[1])
|
b=float(n[1])
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -71,4 +71,4 @@ print(format(a, ".2f"))
|
|||||||
1.23
|
1.23
|
||||||
```
|
```
|
||||||
|
|
||||||
这个方法**会进行四舍五入**
|
这个方法**会进行四舍五入**
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
a=1
|
a=1
|
||||||
print("计算机"+a+"班")
|
print("计算机"+a+"班")
|
||||||
```
|
```
|
||||||
|
|
||||||
这样会报错
|
这样会报错
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
输入函数 input() 需要注意的地方
|
输入函数 input() 需要注意的地方
|
||||||
输入用空格隔开,如何写
|
输入用空格隔开,如何写
|
||||||
输出保留N位小数
|
输出保留N位小数
|
||||||
f-string 格式化字符串
|
f-string 格式化字符串
|
||||||
|
|||||||
@@ -43,7 +43,12 @@ function goSubmissions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function goEdit() {
|
function goEdit() {
|
||||||
const data = router.resolve("/admin/problem/edit/" + problem.value!.id)
|
let data = router.resolve("/admin/problem/edit/" + problem.value!.id)
|
||||||
|
if (problem.value!.contest) {
|
||||||
|
data = router.resolve(
|
||||||
|
`/admin/contest/${problem.value!.contest}/problem/edit/${problem.value!.id}`,
|
||||||
|
)
|
||||||
|
}
|
||||||
window.open(data.href, "_blank")
|
window.open(data.href, "_blank")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -171,6 +171,6 @@ function copyUnaccepted() {
|
|||||||
const prefix = `${grade}计算机${classname}班${query.problem}这道题有${listUnaccepted.value.length}人没有完成,分别是:`
|
const prefix = `${grade}计算机${classname}班${query.problem}这道题有${listUnaccepted.value.length}人没有完成,分别是:`
|
||||||
const names = listUnaccepted.value.map(removeClassname).join("、")
|
const names = listUnaccepted.value.map(removeClassname).join("、")
|
||||||
const suffix = "。请以上同学尽快完成!"
|
const suffix = "。请以上同学尽快完成!"
|
||||||
message.value = prefix+names+suffix
|
message.value = prefix + names + suffix
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { getCaptcha, login, signup } from "../api"
|
import { getCaptcha, signup } from "../api"
|
||||||
import { signupModal, toggleLogin, toggleSignup } from "../composables/modal"
|
import { signupModal, toggleLogin, toggleSignup } from "../composables/modal"
|
||||||
import { useUserStore } from "../store/user"
|
import { useUserStore } from "../store/user"
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { IDomEditor, IEditorConfig, IToolbarConfig } from "@wangeditor-next/editor"
|
import {
|
||||||
|
IDomEditor,
|
||||||
|
IEditorConfig,
|
||||||
|
IToolbarConfig,
|
||||||
|
} from "@wangeditor-next/editor"
|
||||||
import { Editor, Toolbar } from "@wangeditor-next/editor-for-vue"
|
import { Editor, Toolbar } from "@wangeditor-next/editor-for-vue"
|
||||||
import "@wangeditor-next/editor/dist/css/style.css"
|
import "@wangeditor-next/editor/dist/css/style.css"
|
||||||
import { uploadImage } from "../../admin/api"
|
import { uploadImage } from "../../admin/api"
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import Signup from "../components/Signup.vue"
|
|||||||
<n-layout-header bordered class="header">
|
<n-layout-header bordered class="header">
|
||||||
<Header />
|
<Header />
|
||||||
</n-layout-header>
|
</n-layout-header>
|
||||||
<n-layout-content content-style="padding: 16px; overflow-x: initial; max-width: 2000px; margin: 0 auto;">
|
<n-layout-content
|
||||||
|
content-style="padding: 16px; overflow-x: initial; max-width: 2000px; margin: 0 auto;"
|
||||||
|
>
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</n-layout-content>
|
</n-layout-content>
|
||||||
<Login />
|
<Login />
|
||||||
|
|||||||
@@ -133,9 +133,9 @@ export const DIFFICULTY = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cSource =
|
const cSource =
|
||||||
'#include<stdio.h>\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}'
|
"#include<stdio.h>\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}"
|
||||||
const cppSource =
|
const cppSource =
|
||||||
'#include<iostream>\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}'
|
"#include<iostream>\r\n\r\nusing namespace std;\r\n\r\nint main()\r\n{\r\n \r\n return 0;\r\n}"
|
||||||
const pythonSource = ""
|
const pythonSource = ""
|
||||||
const javaSource =
|
const javaSource =
|
||||||
'public class Main {\r\n public static void main(String[] args) {\r\n System.out.println("黄岩一职");\r\n }\r\n}'
|
'public class Main {\r\n public static void main(String[] args) {\r\n System.out.println("黄岩一职");\r\n }\r\n}'
|
||||||
|
|||||||
Reference in New Issue
Block a user