Notice
Recent Posts
Recent Comments
Link
μΌ | μ | ν | μ | λͺ© | κΈ | ν |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- κ²μ
- λκΈ°
- prj
- await
- slow and steady
- object
- https://m.blog.naver.com/tt2t2am1118/221010125300
- ajax
- addEventListener
- async
- JS #νλ‘μ νΈ
- execCommand
- setTimeout()
- js
- db
- Porject
- webpack
- json
- Import
- callback
- μ°Έκ³ λΈλ‘κ·Έ
- https://youtube.com/playlist?list=PLuHgQVnccGMA5836CvWfieEQy0T0ov6Jh&si=FTaYv8m21EhO-A2K
- promise
- mysql
- eport
- νΌν
- Project
- database
- sql
- λΉλκΈ°
Archives
- Today
- Total
C-log
Welcome to Python : νν μλ£ν λ³Έλ¬Έ
728x90
- λ¬Έμμ΄ μλ£ν : https://hi-code.tistory.com/110
- 리μ€νΈ μλ£ν : https://hi-code.tistory.com/111
- νν μλ£ν : https://hi-code.tistory.com/112
- λμ λ리 μλ£ν : https://hi-code.tistory.com/113
- μ§ν© μλ£ν : https://hi-code.tistory.com/114
Title | Code | Console |
νν μλ£ν | ||
νν μμκ° μμ |
#ννμ μμκ°μ ν λ² μ ν΄μ§λ©΄ μ§μ°κ±°λ λ³κ²½ν μ μλ€. t1 = (1,2,'a','b')
del t1[0]
t1 = (1,2,'a','b')
t1[0] = 'c'
|
Traceback (most recent call last): File "...Quiz.py", line 2, in <module> del t1[0] TypeError: 'tuple' object doesn't support item deletion |
νν μμκ° λ³κ²½ | Traceback (most recent call last): File "...Quiz.py", line 6, in <module> t1[0] = 'c' TypeError: 'tuple' object does not support item assignment |
|
ννμ μμκ°μ ν λ² μ ν΄μ§λ©΄ μ§μ°κ±°λ λ³κ²½ν μ μλ€. | ||
νν μΈλ±μ± |
t1 = (1, 2, 'a', 'b') print(t1[0])
|
1 |
νν μ¬λΌμ΄μ± |
t1 = (1, 2, 'a', 'b') print(t1[1:])
|
(2, 'a', 'b') |
νν λνκΈ° |
t1 = (1, 2, 'a', 'b') t2 = (3, 4)
t3 = t1 + t2
print(t3)
|
(1, 2, 'a', 'b', 3, 4) |
νν κ³±νκΈ° |
t2 = (3, 4)
t3 = t2 * 3
print(t3)
|
(3, 4, 3, 4, 3, 4) |
νν κΈΈμ΄ κ΅¬νκΈ° |
t1 = (1, 2, 'a', 'b') print(len(t1))
|
4 |
728x90
'πPython' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
Welcome to Python : κΉμ λ³΅μ¬ μμ λ³΅μ¬ (0) | 2023.07.09 |
---|---|
Welcome to Python : μ§ν© μλ£ν (0) | 2023.07.08 |
Welcome to Python : λμ λ리 μλ£ν (0) | 2023.07.08 |
Welcome to Python : 리μ€νΈ μλ£ν (0) | 2023.07.07 |
Welcome to Python : λ¬Έμμ΄ μλ£ν (0) | 2023.07.06 |
Comments