diff --git a/.gitignore b/.gitignore index cded6f1f..714fa7e9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -.vscode +.idea +.vscode .github img/*.html notebook diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index e69de29b..00000000 diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 67240d70..00000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2da..00000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 6904bdce..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 869eee4f..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/python-small-examples.iml b/.idea/python-small-examples.iml deleted file mode 100644 index 74d515a0..00000000 --- a/.idea/python-small-examples.iml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 4d2680a4..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - 1619363358717 - - - - \ No newline at end of file diff --git a/md/10.md b/md/10.md index 3cc76980..b8ca63b2 100644 --- a/md/10.md +++ b/md/10.md @@ -6,7 +6,7 @@ #### 10 转为整型   -int(x, base =10) , x可能为字符串或数值,将x 转换为一个普通整数。如果参数是字符串,那么它可能包含符号和小数点。如果超出了普通整数的表示范围,一个长整数被返回。 +int(x, base =10) , x可能为字符串或数值,将 x 转换为一个普通整数。如果参数是字符串,那么它可能包含符号和小数点。 ```python In [1]: int('12',16) diff --git a/md/15.md b/md/15.md index 93b443f5..60fdbe93 100644 --- a/md/15.md +++ b/md/15.md @@ -7,16 +7,16 @@ #### 15 任意对象转为字符串   ```python -In [14]: i = 100 +In [1]: i = 100 -In [15]: str(i) -Out[15]: '100' +In [2]: str(i) +Out[2]: '100' -In [16]: str([]) -Out[16]: '[]' +In [3]: str([]) +Out[3]: '[]' -In [17]: str(tuple()) -Out[17]: '()' +In [4]: str(tuple()) +Out[4]: '()' ```
[上一个例子](14.md) [下一个例子](16.md)
\ No newline at end of file diff --git a/md/17.md b/md/17.md index 33dbc7f5..e09883c3 100644 --- a/md/17.md +++ b/md/17.md @@ -10,8 +10,9 @@ ```python In [1]: s = "1 + 3 +5" - ...: eval(s) -Out[1]: 9 + +In [2]: eval(s) +Out[2]: 9 ```
[上一个例子](16.md) [下一个例子](18.md)
\ No newline at end of file diff --git a/md/24.md b/md/24.md index 6aa000d2..22af8a0c 100644 --- a/md/24.md +++ b/md/24.md @@ -9,11 +9,9 @@ ```python In [31]: def f(): ...: print('i\'m f') - ...: In [32]: def g(): ...: print('i\'m g') - ...: In [33]: [f,g][1]() i'm g diff --git a/md/25.md b/md/25.md index 6a655eb4..f1e70f29 100644 --- a/md/25.md +++ b/md/25.md @@ -7,7 +7,8 @@ #### 25 生成逆序序列 ```python -list(range(10,-1,-1)) # [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] +list(range(10,-1,-1)) +# [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] ``` 第三个参数为负时,表示从第一个参数开始递减,终止到第二个参数(不包括此边界) diff --git a/script/.idea/.gitignore b/script/.idea/.gitignore deleted file mode 100644 index 26d33521..00000000 --- a/script/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/script/.idea/inspectionProfiles/Project_Default.xml b/script/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index e4919dcd..00000000 --- a/script/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - \ No newline at end of file diff --git a/script/.idea/inspectionProfiles/profiles_settings.xml b/script/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2da..00000000 --- a/script/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/script/.idea/misc.xml b/script/.idea/misc.xml deleted file mode 100644 index 8161a60d..00000000 --- a/script/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/script/.idea/modules.xml b/script/.idea/modules.xml deleted file mode 100644 index 7e8a5742..00000000 --- a/script/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/script/.idea/script.iml b/script/.idea/script.iml deleted file mode 100644 index 8dc09e54..00000000 --- a/script/.idea/script.iml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/script/.idea/vcs.xml b/script/.idea/vcs.xml deleted file mode 100644 index 6c0b8635..00000000 --- a/script/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file