Skip to content

Commit e8e698d

Browse files
authored
Update 118.md
1 parent 217ce95 commit e8e698d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

md/118.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ print(t) # <_MainThread(MainThread, started 139908235814720)>
2323

2424
所以,验证了程序默认是在`MainThead`中执行。
2525

26-
`t.getName()`获得这个线程的名字,其他常用方法,`getName()`获得线程`id`,`isAlive()`判断线程是否存活等。
26+
`t.getName()`获得这个线程的名字,其他常用方法,`t.ident`获得线程`id`,`isAlive()`判断线程是否存活等。
2727

2828
```python
2929
print(t.getName()) # MainThread
3030
print(t.ident) # 139908235814720
3131
print(t.isAlive()) # True
3232
```
3333

34-
<center>[上一个例子](117.md) [下一个例子](119.md)</center>
34+
<center>[上一个例子](117.md) [下一个例子](119.md)</center>

0 commit comments

Comments
 (0)