Skip to content

Commit

Permalink
Merge pull request #12 from Mikemmmmmcat/patch-1
Browse files Browse the repository at this point in the history
Update python_interview.md
  • Loading branch information
DasyDong authored Dec 7, 2021
2 parents ea65ef8 + a828d50 commit a0554b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion notes/python_interview.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@ e(4, 5) //实例可以象函数那样执行,并传入x y值,修改对象的x
在类外声明def为函数

类中声明def:使用类调用为函数,使用实例化对象调用为方法

对于类方法,无论类调用还是实例调用,均为方法
对于静态方法,无论类调用还是实例调用,均为函数
可以使用isinstance\(\)判断

```text
Expand Down

0 comments on commit a0554b7

Please sign in to comment.