Skip to content
Snippets Groups Projects
Commit a9f6bdf6 authored by rejenver's avatar rejenver
Browse files

Add new file

parent 2441bd7b
No related branches found
No related tags found
No related merge requests found
리스트 = 변경가능
튜플 = 변경 X
([],[])랑 [(),()] 차이. 문제내기 좋음.
a = ([1,2,4],[5,6,7]) 일 때, a[0] = [1,2,4] a[1] = [5,6,7], 이는 튜플이다.
a[0][0] = 1, a[0][1] = 2...... 이는 element이며, 수정 가능함.
a = 23232323
b = a & 0xffffffff = a를 비트화.
count = 0 = count 변수 지정
for x in range(32): = 32번 반복
if ( a & (1 << x) != 0): = a와 (1 * x)의 비트 연산. &에서 값이 0이 아니라면
count = count + 1 = 카운트 변수 + 1
print(a, bin(b), count)
a = "" = null
\ 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