4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

파이썬은 왜 이름과 값으로 관리하는가?

파이썬은 변수 정의가 별도로 없다 항상 변수를 정의하면 값을 할당해야한다

이런 체계는 파이썬은 네임스페이스 정책이 딕셔너리에 키와 값으로만 저장하는 구조를 사용하기 때문이다

함수 정의나 클래스 정의도 정의된 이름을 키로 저장하므로 변수명으로 사용하므로 이와 동일한 변수가 있을 경우 값이 갱신되어 이 이름을 사용할 경우 다른 결과가 나올 수 있다

1 upvotes $0.00

Replies (0)

Conversation

No replies yet

Replies will appear here as people join the conversation.

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: