Skip to content
Snippets Groups Projects
Commit 5f17ffcf authored by KimMinSeob's avatar KimMinSeob
Browse files

Upload New File

parent c26684f3
No related branches found
No related tags found
No related merge requests found
문자열은 리스트가 아니고 튜플이다.
( 변경불가능)
t =(1,2,3)
t =(3,4,5)
가능 >>> 튜플을 변경한 것이 아니라 변수 t 가 원래 가리키던 튜플이 아닌 다른 튜플을 가리키도록 만든것.
요소가 하나인 튜플만들때 쉼표 붙이는 이유 >> 안붙이면 type이 int 가 됨.
>>> a =-4
>>> bin(a)
'-0b100'
>>> b = 0b00110011
>>> bin(b)
'0b110011'
>>> bin(a&b)
'0b110000'
(a * -1) == (~a +1) >> true
튜플의 리스트 만들어보고
변경가능한 요소와 변경불가능한 요소 생각해보기
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment