update
This commit is contained in:
@@ -30,12 +30,20 @@ export default defineConfig({
|
|||||||
sidebar: {
|
sidebar: {
|
||||||
"/python": [
|
"/python": [
|
||||||
{
|
{
|
||||||
text: "课程须知",
|
text: "使用说明",
|
||||||
items: [
|
items: [
|
||||||
{ text: "代码区", link: "/python/00/index.md" },
|
{ text: "本网站", link: "/python/00/index.md" },
|
||||||
{ text: "自测猫", link: "/python/00/cat.md" },
|
{ text: "自测猫", link: "/python/00/code.md" },
|
||||||
{ text: "练习册", link: "/python/00/playground.md" },
|
{ text: "判题狗", link: "/python/00/oj.md" },
|
||||||
{ text: "判题狗", link: "/python/00/dog.md" },
|
{ text: "练习册", link: "/python/00/play.md" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "编程技巧",
|
||||||
|
items: [
|
||||||
|
{ text: "Python 小抄", link: "/python/01/cheatsheet.md" },
|
||||||
|
{ text: "看懂报错信息", link: "/python/01/error-message.md" },
|
||||||
|
{ text: "使用 AI", link: "/python/01/chatgpt.md" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -60,7 +68,7 @@ export default defineConfig({
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
outlineTitle: "目录",
|
outlineTitle: "目录",
|
||||||
sidebarMenuLabel: "侧边栏",
|
sidebarMenuLabel: "大纲",
|
||||||
returnToTopLabel: "返回顶部",
|
returnToTopLabel: "返回顶部",
|
||||||
darkModeSwitchLabel: "浅色/深色",
|
darkModeSwitchLabel: "浅色/深色",
|
||||||
|
|
||||||
|
|||||||
8
index.md
8
index.md
@@ -16,8 +16,10 @@ hero:
|
|||||||
features:
|
features:
|
||||||
- title: 派神启动
|
- title: 派神启动
|
||||||
details: 运行代码、修改代码、输入交互
|
details: 运行代码、修改代码、输入交互
|
||||||
- title: 生动形象
|
- title: 简单易懂
|
||||||
details: 图文并茂、简单明了
|
details: 图文并茂、简单明了
|
||||||
- title: 随时随地
|
- title: 横向扩展
|
||||||
details: 手机可以看、电脑可以看、白天可以看、晚上可以看
|
details: 多了很多课上和书里没有的
|
||||||
|
- title: 轻轻松松
|
||||||
|
details: 按心情随时更新
|
||||||
---
|
---
|
||||||
|
|||||||
BIN
python/00/assets/book.png
Normal file
BIN
python/00/assets/book.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 125 KiB |
BIN
python/00/assets/book2.png
Normal file
BIN
python/00/assets/book2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 53 KiB |
BIN
python/00/assets/cat.png
Normal file
BIN
python/00/assets/cat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
python/00/assets/oj.png
Normal file
BIN
python/00/assets/oj.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 309 KiB |
BIN
python/00/assets/play.png
Normal file
BIN
python/00/assets/play.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 80 KiB |
@@ -1 +0,0 @@
|
|||||||
# 编程规范
|
|
||||||
15
python/00/code.md
Normal file
15
python/00/code.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# 自测猫的使用说明
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
自测猫 [https://code.xuyue.cc](https://code.xuyue.cc) 是一个代码在线运行的网站,省去在本地搭建编程环境的过程,平时运行简单的代码片段够用了。(为什么叫自测猫,因为是**自**行**测**试代码的机器**猫**
|
||||||
|
|
||||||
|
在左边写代码,当遇到要输入的情况时,在右侧上方的输入框中先写好你要输入的内容,再点击右上角绿色的运行(或者快捷键 F5),运行结果就会出现在下面。
|
||||||
|
|
||||||
|
因为适配了移动端,用手机打开,一些功能我给移到其他地方了,并且新增了**编程助手**,方便关键字和符号的输入:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
希望不要给我找没有电脑的借口了,你有手机就可以写代码了(也许吧
|
||||||
|
|
||||||
|
对了,自测猫支持**实时保存**,不小心关掉页面,你写的代码也不会丢失。
|
||||||
@@ -1,19 +1,27 @@
|
|||||||
# 如何学习这个课程
|
# 本网站的使用说明
|
||||||
|
|
||||||
::: tip
|

|
||||||
下面的代码区域可以进行编辑并运行
|
|
||||||
:::
|
本网站 [https://book.xuyue.cc](https://book.xuyue.cc) 是一本编程书,其中包含了编程语言、应用领域、计算机科学等相关内容。
|
||||||
|
|
||||||
|
本网站支持代码互动,比如下面的代码区,在输入框输入**黄岩一职**,点击运行,会显示欢迎光临:
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
const code = `
|
const code = `
|
||||||
n=input()
|
a=input()
|
||||||
if n == "黄岩一职":
|
if a == "黄岩一职":
|
||||||
print("欢迎光临")
|
print("欢迎光临")
|
||||||
`
|
`
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<editor :code="code" />
|
<editor :code="code" />
|
||||||
|
|
||||||
|
当然普通的、不互动的代码块也有,一般用于演示:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
print(123)
|
print("欢迎光临")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
我大部分的有图文的内容都会放在飞书知识库中,由于学校机房孱弱的机器性能,这个网站仅是一些必要的文字,以满足上课时候的需求。
|
||||||
|
|
||||||
|
一般来说,这个网站的内容会以链接的形式放到我的其他网站上去,能直接翻看这个网站的人算是少数吧(笑
|
||||||
|
|||||||
7
python/00/oj.md
Normal file
7
python/00/oj.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# 判题狗的使用说明
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
判题狗 [https://oj.xuyue.cc](https://oj.xuyue.cc) 是一个在线评测平台(Online Judge),由练习、比赛、排名等组成,真实反映你用代码解决问题的能力。
|
||||||
|
|
||||||
|
【未完待续。。。】
|
||||||
7
python/00/play.md
Normal file
7
python/00/play.md
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# 练习册的使用说明
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
练习册 [https://play.xuyue.cc/](https://play.xuyue.cc/) 单纯用于检测你是否掌握代码格式,本身这个网站也比较简单,半个小时就可以通关(关键是我比较懒,没有几道题
|
||||||
|
|
||||||
|
这个网站是我在教师培训时候无聊做的,功能不多,之后有空升级成自主刷题网站(也许吧
|
||||||
1
python/01/chatgpt.md
Normal file
1
python/01/chatgpt.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# 如何利用 AI 帮助学习编程
|
||||||
1
python/01/cheatsheet.md
Normal file
1
python/01/cheatsheet.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# Python 小抄
|
||||||
1
python/01/error-message.md
Normal file
1
python/01/error-message.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# 看懂报错信息
|
||||||
Reference in New Issue
Block a user