Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KimMinSeob
Python
Commits
5f17ffcf
Commit
5f17ffcf
authored
6 years ago
by
KimMinSeob
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parent
c26684f3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
창소입4].txt
+35
-0
35 additions, 0 deletions
창소입4].txt
with
35 additions
and
0 deletions
창소입4].txt
0 → 100644
+
35
−
0
View file @
5f17ffcf
문자열은 리스트가 아니고 튜플이다.
( 변경불가능)
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment