>  Q&A  >  본문

self 매개변수가 없는 멤버 함수는 비공개가 되었음을 의미합니까?

class 테스트:

def foo():

print('hello fishc')

def hello(self):

                                                 >           Test.FOO()

O U S I S I S I S S ITS

> >>c.hello()

hello fishc

手机用户1583139957手机用户15831399571632일 전1042

모든 응답(0)나는 대답할 것이다

답장 없음
  • 취소회신하다