Skip to content

Commit

Permalink
remove .idea
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhen3 committed Jun 24, 2021
1 parent ecb9bf7 commit 9584ec4
Show file tree
Hide file tree
Showing 21 changed files with 15 additions and 225 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode
.idea
.vscode
.github
img/*.html
notebook
Expand Down
Empty file removed .idea/.gitignore
Empty file.
60 changes: 0 additions & 60 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/python-small-examples.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

34 changes: 0 additions & 34 deletions .idea/workspace.xml

This file was deleted.

2 changes: 1 addition & 1 deletion md/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#### 10 转为整型  

int(x, base =10) , x可能为字符串或数值,将x 转换为一个普通整数。如果参数是字符串,那么它可能包含符号和小数点。如果超出了普通整数的表示范围,一个长整数被返回。
int(x, base =10) , x可能为字符串或数值,将 x 转换为一个普通整数。如果参数是字符串,那么它可能包含符号和小数点。

```python
In [1]: int('12',16)
Expand Down
14 changes: 7 additions & 7 deletions md/15.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]: '()'
```

<center>[上一个例子](14.md) [下一个例子](16.md)</center>
5 changes: 3 additions & 2 deletions md/17.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@

```python
In [1]: s = "1 + 3 +5"
...: eval(s)
Out[1]: 9

In [2]: eval(s)
Out[2]: 9
```

<center>[上一个例子](16.md) [下一个例子](18.md)</center>
2 changes: 0 additions & 2 deletions md/24.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion md/25.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
```

第三个参数为负时,表示从第一个参数开始递减,终止到第二个参数(不包括此边界)
Expand Down
3 changes: 0 additions & 3 deletions script/.idea/.gitignore

This file was deleted.

45 changes: 0 additions & 45 deletions script/.idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions script/.idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

4 changes: 0 additions & 4 deletions script/.idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions script/.idea/modules.xml

This file was deleted.

11 changes: 0 additions & 11 deletions script/.idea/script.iml

This file was deleted.

6 changes: 0 additions & 6 deletions script/.idea/vcs.xml

This file was deleted.

0 comments on commit 9584ec4

Please sign in to comment.