diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 4297c86..64af7c7 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -30,12 +30,20 @@ export default defineConfig({ sidebar: { "/python": [ { - text: "课程须知", + text: "使用说明", items: [ - { text: "代码区", link: "/python/00/index.md" }, - { text: "自测猫", link: "/python/00/cat.md" }, - { text: "练习册", link: "/python/00/playground.md" }, - { text: "判题狗", link: "/python/00/dog.md" }, + { text: "本网站", link: "/python/00/index.md" }, + { text: "自测猫", link: "/python/00/code.md" }, + { text: "判题狗", link: "/python/00/oj.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: "目录", - sidebarMenuLabel: "侧边栏", + sidebarMenuLabel: "大纲", returnToTopLabel: "返回顶部", darkModeSwitchLabel: "浅色/深色", diff --git a/index.md b/index.md index 8796ab5..34ac243 100644 --- a/index.md +++ b/index.md @@ -16,8 +16,10 @@ hero: features: - title: 派神启动 details: 运行代码、修改代码、输入交互 - - title: 生动形象 + - title: 简单易懂 details: 图文并茂、简单明了 - - title: 随时随地 - details: 手机可以看、电脑可以看、白天可以看、晚上可以看 + - title: 横向扩展 + details: 多了很多课上和书里没有的 + - title: 轻轻松松 + details: 按心情随时更新 --- diff --git a/python/00/assets/book.png b/python/00/assets/book.png new file mode 100644 index 0000000..100d7bf Binary files /dev/null and b/python/00/assets/book.png differ diff --git a/python/00/assets/book2.png b/python/00/assets/book2.png new file mode 100644 index 0000000..a315769 Binary files /dev/null and b/python/00/assets/book2.png differ diff --git a/python/00/assets/cat.png b/python/00/assets/cat.png new file mode 100644 index 0000000..9b4383b Binary files /dev/null and b/python/00/assets/cat.png differ diff --git a/python/00/assets/oj.png b/python/00/assets/oj.png new file mode 100644 index 0000000..dd2c359 Binary files /dev/null and b/python/00/assets/oj.png differ diff --git a/python/00/assets/play.png b/python/00/assets/play.png new file mode 100644 index 0000000..43991ba Binary files /dev/null and b/python/00/assets/play.png differ diff --git a/python/00/cat.md b/python/00/cat.md deleted file mode 100644 index b09c5ac..0000000 --- a/python/00/cat.md +++ /dev/null @@ -1 +0,0 @@ -# 编程规范 \ No newline at end of file diff --git a/python/00/code.md b/python/00/code.md new file mode 100644 index 0000000..9b98256 --- /dev/null +++ b/python/00/code.md @@ -0,0 +1,15 @@ +# 自测猫的使用说明 + +![](./assets/cat.png) + +自测猫 [https://code.xuyue.cc](https://code.xuyue.cc) 是一个代码在线运行的网站,省去在本地搭建编程环境的过程,平时运行简单的代码片段够用了。(为什么叫自测猫,因为是**自**行**测**试代码的机器**猫** + +在左边写代码,当遇到要输入的情况时,在右侧上方的输入框中先写好你要输入的内容,再点击右上角绿色的运行(或者快捷键 F5),运行结果就会出现在下面。 + +因为适配了移动端,用手机打开,一些功能我给移到其他地方了,并且新增了**编程助手**,方便关键字和符号的输入: + +![](./assets/book2.png) + +希望不要给我找没有电脑的借口了,你有手机就可以写代码了(也许吧 + +对了,自测猫支持**实时保存**,不小心关掉页面,你写的代码也不会丢失。 \ No newline at end of file diff --git a/python/00/dog.md b/python/00/dog.md deleted file mode 100644 index e69de29..0000000 diff --git a/python/00/index.md b/python/00/index.md index c4e18f2..5fbede4 100644 --- a/python/00/index.md +++ b/python/00/index.md @@ -1,19 +1,27 @@ -# 如何学习这个课程 +# 本网站的使用说明 -::: tip -下面的代码区域可以进行编辑并运行 -::: +![](./assets/book.png) + +本网站 [https://book.xuyue.cc](https://book.xuyue.cc) 是一本编程书,其中包含了编程语言、应用领域、计算机科学等相关内容。 + +本网站支持代码互动,比如下面的代码区,在输入框输入**黄岩一职**,点击运行,会显示欢迎光临: +当然普通的、不互动的代码块也有,一般用于演示: + ```python -print(123) +print("欢迎光临") ``` + +我大部分的有图文的内容都会放在飞书知识库中,由于学校机房孱弱的机器性能,这个网站仅是一些必要的文字,以满足上课时候的需求。 + +一般来说,这个网站的内容会以链接的形式放到我的其他网站上去,能直接翻看这个网站的人算是少数吧(笑 diff --git a/python/00/oj.md b/python/00/oj.md new file mode 100644 index 0000000..767a557 --- /dev/null +++ b/python/00/oj.md @@ -0,0 +1,7 @@ +# 判题狗的使用说明 + +![](./assets/oj.png) + +判题狗 [https://oj.xuyue.cc](https://oj.xuyue.cc) 是一个在线评测平台(Online Judge),由练习、比赛、排名等组成,真实反映你用代码解决问题的能力。 + +【未完待续。。。】 \ No newline at end of file diff --git a/python/00/play.md b/python/00/play.md new file mode 100644 index 0000000..34f1d0d --- /dev/null +++ b/python/00/play.md @@ -0,0 +1,7 @@ +# 练习册的使用说明 + +![](./assets/play.png) + +练习册 [https://play.xuyue.cc/](https://play.xuyue.cc/) 单纯用于检测你是否掌握代码格式,本身这个网站也比较简单,半个小时就可以通关(关键是我比较懒,没有几道题 + +这个网站是我在教师培训时候无聊做的,功能不多,之后有空升级成自主刷题网站(也许吧 \ No newline at end of file diff --git a/python/00/playground.md b/python/00/playground.md deleted file mode 100644 index e69de29..0000000 diff --git a/python/01/chatgpt.md b/python/01/chatgpt.md new file mode 100644 index 0000000..6390152 --- /dev/null +++ b/python/01/chatgpt.md @@ -0,0 +1 @@ +# 如何利用 AI 帮助学习编程 \ No newline at end of file diff --git a/python/01/cheatsheet.md b/python/01/cheatsheet.md new file mode 100644 index 0000000..084c515 --- /dev/null +++ b/python/01/cheatsheet.md @@ -0,0 +1 @@ +# Python 小抄 \ No newline at end of file diff --git a/python/01/error-message.md b/python/01/error-message.md new file mode 100644 index 0000000..cefffcc --- /dev/null +++ b/python/01/error-message.md @@ -0,0 +1 @@ +# 看懂报错信息 \ No newline at end of file