๋ฐ˜์‘ํ˜•

์ •์ฒ˜๊ธฐ ์ค€๋น„ํ•  ๋•Œ ์ •๋ฆฌํ•ด๋’€๋˜ ํŒŒ์ด์ฌ ์ž๋ฃŒํ˜• 4๊ฐœ ๋น„๊ต!

 

๋‹ค์‹œ ๊ณต๋ถ€ํ•˜๋ฉด์„œ ์˜ˆ์ „์— ์ •๋ฆฌํ•ด๋’€๋˜ ์ž๋ฃŒ ์ฐพ์•˜๋Š”๋ฐ ๋ณ„ ๋‚ด์šฉ์ด ์—†...๋„ค...ใ…Žใ…Žใ…Žใ…Ž

์‚ฌ์‹ค ๋ฒผ๋ ฅ์น˜๊ธฐ๋กœ ์…ค๊ณต๋ถ€ ํ•  ๋•Œ๋Š” ๋‚ด๋ฉ‹๋Œ€๋กœ array, object!! ํ•˜๋ฉด์„œ ํ’€๋‹ค๊ฐ€ (1,2,3) ์ด๋ ‡๊ฒŒ ์ƒ๊ธด ํŠœํ”Œ๋ณด๊ณ  ๋‡Œ์ •์ง€ ์™”์—ˆ์Œ..ํ—ฟ

 

๋˜‘๋ฐ”๋กœ ์ •๋ฆฌํ•ด๋‘๊ณ  ์ œ๋Œ€๋กœ ๊ณต๋ถ€ํ•ด๋ณด์ž~~~~~~~~~~~~~~~~~~~~~~~

โœ… ํŒŒ์ด์ฌ ์ž๋ฃŒํ˜•(list, tuple, set, dict)

[list] ์ˆœ์„œ๊ฐ€ ์žˆ๋Š” ๋ณ€๊ฒฝ ๊ฐ€๋Šฅํ•œ ๊ฐ์ฒด์˜ ๋ชจ์Œ. ์ค‘๋ณต ํ—ˆ์šฉ [1, 2.5, 'hello', True ]
(tuple) ์ˆœ์„œ๊ฐ€ ์žˆ๋Š” ๋ณ€๊ฒฝ ๋ถˆ๊ฐ€๋Šฅํ•œ ๊ฐ์ฒด์˜ ๋ชจ์Œ (1, 2.5, 'hello', True)
{set} ์ˆœ์„œ๊ฐ€ ์—†๊ณ  ์ค‘๋ณต ์—†๋Š” ๊ฐ์ฒด์˜ ๋ชจ์Œ {1, 2.5, 'hello', True}
{dictionary} ์ˆœ์„œ๊ฐ€ ์—†๋Š” key:value ํ˜•ํƒœ์˜ ๋ชจ์Œ {'a':1, 'b':2, 'c':3 }

 

โœ… ์ž๋ฃŒํ˜• ๋ณ„ ๊ฐ’ ์ถ”๊ฐ€, ์ˆ˜์ •, ์‚ญ์ œ

๐Ÿ”ฅ ํŠœํ”Œ์€ ๋ถˆ๋ณ€ ๊ฐ์ฒด!!!! ๊ฐ’ ์ˆ˜์ • / ์ถ”๊ฐ€ / ์‚ญ์ œ ๋ถˆ๊ฐ€

list
[ ]
์ˆ˜์ • my_list = [1, 2, 3]
my_list[1] = 4  # [1, 4, 3]
์ถ”๊ฐ€ // append(value)๋Š” ๋ฆฌ์ŠคํŠธ ๋์— ๊ฐ’์„ ์ถ”๊ฐ€ํ•˜๊ณ , insert(index, value)๋Š” ํŠน์ • ์ธ๋ฑ์Šค์— ๊ฐ’์„ ์ถ”๊ฐ€
my_list = [1, 2, 3]
my_list.append(4)   # [1, 2, 3, 4]
my_list.insert(1, 5)   # [1, 5, 2, 3, 4]
my_list.extend([6, 7])   # [1, 5, 2, 3, 4, 6, 7]
์‚ญ์ œ my_list = [1, 2, 3, 4]
my_list.remove(3)   # [1, 2, 4]
my_list.pop(1)   # [1, 4]
del my_list[0]   # [4]
my_list.clear()   # []
set
{ }
์ˆ˜์ • ๋ถˆ๊ฐ€!!!!
์ถ”๊ฐ€ my_set = {1, 2, 3}
my_set.add(4)   # {1, 2, 3, 4}
my_set.update([5, 6])   # {1, 2, 3, 4, 5, 6}
์‚ญ์ œ my_set = {1, 2, 3, 4}
my_set.remove(3)   # {1, 2, 4}
my_set.discard(2)   # {1, 4}
my_set.pop()   # ์ž„์˜์˜ ์š”์†Œ ์ œ๊ฑฐ, ์˜ˆ: {2, 3, 4} ๋˜๋Š” {1, 3, 4}
my_set.clear()   # set()
dictionary
{ key:value }
์ˆ˜์ • my_dict = {'a': 1, 'b': 2}
my_dict['a'] = 3   # {'a': 3, 'b': 2}
์ถ”๊ฐ€ my_dict = {'a': 1, 'b': 2}
my_dict['c'] = 3     # {'a': 1, 'b': 2, 'c': 3}
my_dict.update({'d': 4})   # {'a': 1, 'b': 2, 'c': 3, 'd': 4}
์‚ญ์ œ my_dict = {'a': 1, 'b': 2, 'c': 3}
del my_dict['b']   # {'a': 1, 'c': 3}
my_dict.pop('a')   # {'c': 3}
my_dict.clear()   # {}

 

๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

์šฐ์„  ํŒŒ์ด์ฌ ์„ค์น˜ ๋ฐฉ๋ฒ•์—๋Š” 3๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค.

ํŒŒ์ด์ฌ ๊ณตํ™ˆ ๋‹ค์šด๋กœ๋“œ / ์•„๋‚˜์ฝ˜๋‹ค ๋‹ค์šด๋กœ๋“œ / ๋ฏธ๋‹ˆ์ฝ˜๋‹ค ๋‹ค์šด๋กœ๋“œ

 

• ํŒŒ์ด์ฌ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€ :: https://www.python.org

 

Welcome to Python.org

The official home of the Python Programming Language

www.python.org

 

 • anaconda  :: https://www.anaconda.com 

 

Anaconda | The Operating System for AI

Democratize AI innovation with the world’s most trusted open ecosystem for data science and AI development.

www.anaconda.com

 

• miniconda ::  https://docs.anaconda.com/miniconda/

 

Miniconda — Anaconda documentation

These three commands quickly and quietly download the latest 64-bit Windows installer, rename it to a shorter file name, silently install, and then delete the installer: curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o minic

docs.anaconda.com

 

ํŒŒ์ด์ฌ ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์—์„œ ํŒŒ์ด์ฌ์„ ๋‹ค์šด๋กœ๋“œํ•˜๋ฉด, ๊ธฐ๋ณธ์ ์ธ ํŒŒ์ด์ฌ ์ธํ„ฐํ”„๋ฆฌํ„ฐ์™€ ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋งŒ ์„ค์น˜๋œ๋‹ค.

๋ฐ˜๋ฉด, Anaconda๋‚˜ Miniconda๋Š” ํŒŒ์ด์ฌ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ ์‹œ์Šคํ…œ(conda)๋„ ํฌํ•จ๋˜์–ด ์žˆ์–ด, ๋ฐ์ดํ„ฐ ๊ณผํ•™ ๋ฐ ๋จธ์‹  ๋Ÿฌ๋‹์— ํ•„์š”ํ•œ ๋‹ค์–‘ํ•œ ํŒจํ‚ค์ง€๋ฅผ ์‰ฝ๊ฒŒ ์„ค์น˜ํ•˜๊ณ  ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋‹ค :)

 

Anaconda

  • ์ „์ฒด ํŒจํ‚ค์ง€: Anaconda๋Š” ๋งŽ์€ ํŒจํ‚ค์ง€๋ฅผ ํฌํ•จํ•˜์—ฌ ์ œ๊ณตํ•˜๋Š” ๋ฐฐํฌํŒ์œผ๋กœ ๊ธฐ๋ณธ์ ์œผ๋กœ 1,500๊ฐœ ์ด์ƒ์˜ ํŒจํ‚ค์ง€๊ฐ€ ์‚ฌ์ „ ์„ค์น˜๋˜์–ด ์žˆ๋‹ค.
  • ์‚ฌ์šฉ์ž ์นœํ™”์ : GUI(Anaconda Navigator)๋ฅผ ์ œ๊ณตํ•˜์—ฌ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์™€ ํ™˜๊ฒฝ ๊ด€๋ฆฌ๋ฅผ ์‰ฝ๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ๋Œ€๊ทœ๋ชจ: ์„ค์น˜ ํŒŒ์ผ ํฌ๊ธฐ๊ฐ€ ํฌ๊ณ , ๋งŽ์€ ๊ณต๊ฐ„์„ ์ฐจ์ง€ํ•  ์ˆ˜ ์žˆ๋‹ค.

Miniconda

  • ๊ฒฝ๋Ÿ‰ ๋ฐฐํฌํŒ: Miniconda๋Š” Anaconda์˜ ๊ฒฝ๋Ÿ‰ ๋ฒ„์ „์œผ๋กœ, ๊ธฐ๋ณธ์ ์œผ๋กœ Python๊ณผ conda ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ์ž๋งŒ ํฌํ•จ๋˜์–ด ์žˆ๋‹ค. ์‚ฌ์šฉ์ž๊ฐ€ ํ•„์š”ํ•œ ํŒจํ‚ค์ง€๋ฅผ ์ง์ ‘ ์„ค์น˜ํ•ด์•ผ ํ•œ๋‹ค.
  • ์œ ์—ฐ์„ฑ: ํ•„์š”์— ๋”ฐ๋ผ ์›ํ•˜๋Š” ํŒจํ‚ค์ง€๋งŒ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์–ด ๊ณต๊ฐ„์„ ์ ˆ์•ฝํ•  ์ˆ˜ ์žˆ๋‹ค.
  • ๋น ๋ฅธ ์„ค์น˜: ๊ธฐ๋ณธ ์„ค์น˜๊ฐ€ ์ž‘๊ณ  ๊ฐ„๋‹จํ•˜์—ฌ, ์‹ ์†ํ•˜๊ฒŒ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

๋ฆฌ์•กํŠธ ํ”„๋กœ์ ํŠธ์—์„œ์˜ npm์ด๋‚˜ yarn๊ณผ ๊ฐ™์€ ์—ญํ• ์„ ํ•˜๋Š” ๊ฒƒ ๊ฐ™๋‹ค.

์šฐ์„  ๋ฏธ๋‹ˆ์ฝ˜๋‹ค๋ฅผ ์„ค์น˜ํ•ด๋ณด๊ธฐ๋กœ!

 

 https://docs.anaconda.com/miniconda/ ์ ‘์†ํ•˜์—ฌ ์Šคํฌ๋กค์„ ์ญ‰- ๋‚ด๋ ค ์šด์˜์ฒด์ œ์— ๋งž๋Š” ๊ฑธ๋กœ ๋‹ค์šด๋กœ๋“œ.

์œˆ๋„์šฐ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— ๋งจ ์ฒ˜์Œ๊ฑธ๋กœ ํด๋ฆญํด๋ฆญ

 

์ญ‰์ญ‰ ๊ณ„์† next ํด๋ฆญํ•˜๋‹ค๋ณด๋ฉด ์„ค์น˜ ์™„๋ฃŒ!

 

๋ฏธ๋ฃจ๊ณ  ๋ฏธ๋ฃจ๊ณ  ๋ฏธ๋ค„์™”๋˜ ํŒŒ์ด์ฌ 

๊ฐ‘์ž‘์Šค๋Ÿฝ๊ฒŒ ๋ƒ…๋‹ค ์„ค์น˜ํ•ด๋ถ€๋ €๋‹ค. ์‹œ์ž‘์ด ๋ฐ˜์ด๋žฌ์œผ๋‹ˆ๊นŒ ๐Ÿ‘ป  ์šฐํ•˜ํ•˜ํ•ณ

์ •์ฒ˜๊ธฐ ๋ฌธํ’€๋กœ๋งŒ ์ ‘ํ•œ๊ฒŒ ๋‹ค์ง€๋งŒ.. ์ผ๋‹จ ๋ง›๋ณด๊ธฐ๋ผ๋„ ํ•ด๋ณด์žฃ!! 10์›” ํŒŒ์ด์ฌ ๊ณ ๊ณ ์”ฝ '~'

๋ฐ˜์‘ํ˜•

+ Recent posts