fix issues

This commit is contained in:
epsilon_luoo
2022-07-08 16:17:54 +08:00
parent cfc1297c19
commit a5df74d121
3 changed files with 10 additions and 9 deletions

View File

@@ -517,7 +517,7 @@
" - `<<` 表示左移操作\n",
" - `&` 表示按位与\n",
" - `|` 表示按位或\n",
" - `^` 表示按位或\n",
" - `^` 表示按位或\n",
" - `~` 表示按位取反\n",
" \n",
"其中最常用的是算数运算符与逻辑运算符,位运算符在 集合 操作中经常使用。\n",

View File

@@ -266,7 +266,7 @@
"## 创建一个 student 类\n",
"class student():\n",
" ## 类的内部定义三个内部变量,并定义他们的初始值\n",
" name = 'Undifined'\n",
" name = 'Undefined'\n",
" math_score = -1\n",
" language_score = -1"
]
@@ -430,7 +430,7 @@
" def print_name(self,):\n",
" print(self.name)\n",
" \n",
" name = 'Undifined'\n",
" name = 'Undefined'\n",
" math_score = -1\n",
" language_score = -1"
]
@@ -485,15 +485,16 @@
" def change_score(self, course_name, score):\n",
" if course_name == 'math':\n",
" self.math_score = score\n",
" if course_name == 'language':\n",
" elif course_name == 'language':\n",
" self.language_score = score\n",
" ## 如果输入的 course_name 不是 math 或者 language则输出错误信息\n",
" print(course_name, \" course is still not in current system\")\n",
" else:\n",
" print(course_name, \" course is still not in current system\")\n",
" \n",
" def print_name(self,):\n",
" print(self.name)\n",
" \n",
" name = 'Undifined'\n",
" name = 'Undefined'\n",
" math_score = -1\n",
" language_score = -1"
]
@@ -577,7 +578,7 @@
" def print_name(self,):\n",
" print(self.name)\n",
" \n",
" name = 'Undifined'\n",
" name = 'Undefined'\n",
" math_score = -1\n",
" language_score = -1"
]
@@ -1098,7 +1099,7 @@
" def print_name(self,):\n",
" print(self.name)\n",
" \n",
" name = 'Undifined'\n",
" name = 'Undefined'\n",
" math_score = -1\n",
" language_score = -1"
]

View File

@@ -456,7 +456,7 @@
"id": "f0673d08",
"metadata": {},
"source": [
"### 1.4.3.2 Python 之"
"### 1.4.3.2 Python 之"
]
},
{