This commit is contained in:
2025-01-15 11:55:28 +08:00
parent 9be8827b6c
commit 1ea808e3ff
15 changed files with 29 additions and 16 deletions

View File

@@ -98,7 +98,7 @@ onMounted(init)
v-model:value="announcement.content"
: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-flex>
</template>

View File

@@ -127,7 +127,7 @@ onMounted(getContestDetail)
v-model:value="contest.description"
: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-flex>
</template>

View File

@@ -511,7 +511,7 @@ watch(
</n-flex>
</template>
</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-item label="语言">
<n-checkbox-group v-model:value="problem.languages">

View File

@@ -15,16 +15,17 @@ print"China"
print(“China”)
```
## 第三:下面的写法是等价的
### 第一种:
```py
a="China"
print(a)
```
### 第二种:
```py
print("China")
```
@@ -45,4 +46,4 @@ print("你好")
print("程旭", "赵铖洋", "於锦诚", "叶小斌", "洋芋头", "池涛涛")
```
在右边的代码中找找茬吧Let's GO
在右边的代码中找找茬吧Let's GO

View File

@@ -45,4 +45,4 @@ print(a-3)
```
输入3.14
输出0.14
输出0.14

View File

@@ -48,4 +48,4 @@ n=input().split()
a=float(n[0])
b=float(n[1])
```
```

View File

@@ -71,4 +71,4 @@ print(format(a, ".2f"))
1.23
```
这个方法**会进行四舍五入**
这个方法**会进行四舍五入**

View File

@@ -4,6 +4,7 @@
a=1
print("计算机"+a+"班")
```
这样会报错
![报错](./image.png)

View File

@@ -2,4 +2,4 @@
输入函数 input() 需要注意的地方
输入用空格隔开,如何写
输出保留N位小数
f-string 格式化字符串
f-string 格式化字符串

View File

@@ -43,7 +43,12 @@ function goSubmissions() {
}
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")
}

View File

@@ -171,6 +171,6 @@ function copyUnaccepted() {
const prefix = `${grade}计算机${classname}${query.problem}这道题有${listUnaccepted.value.length}人没有完成,分别是:`
const names = listUnaccepted.value.map(removeClassname).join("、")
const suffix = "。请以上同学尽快完成!"
message.value = prefix+names+suffix
message.value = prefix + names + suffix
}
</script>

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { getCaptcha, login, signup } from "../api"
import { getCaptcha, signup } from "../api"
import { signupModal, toggleLogin, toggleSignup } from "../composables/modal"
import { useUserStore } from "../store/user"

View File

@@ -1,5 +1,9 @@
<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 "@wangeditor-next/editor/dist/css/style.css"
import { uploadImage } from "../../admin/api"

View File

@@ -10,7 +10,9 @@ import Signup from "../components/Signup.vue"
<n-layout-header bordered class="header">
<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>
</n-layout-content>
<Login />

View File

@@ -133,9 +133,9 @@ export const DIFFICULTY = {
}
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 =
'#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 javaSource =
'public class Main {\r\n public static void main(String[] args) {\r\n System.out.println("黄岩一职");\r\n }\r\n}'