๐Ÿ’ป/ํ”„๋กœ๊ทธ๋ž˜๋ฐ 30

ํŒŒ์ด์ฌ venv๋ฅผ conda ์ฒ˜๋Ÿผ ์‚ฌ์šฉ

TL;DRUbuntu ๊ธฐ์ค€ venv๋ฅผ conda์™€ ๋น„์Šทํ•˜๊ฒŒ ์“ฐ๋Š” ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑ.$HOME/~.venvs์— ํ™˜๊ฒฝ์„ ๋ชจ์•„์„œ ๊ด€๋ฆฌ.venv_create venv_activate venv_deactivate  ๋ฐฐ๊ฒฝ๊ฐœ์ธ์€ ์ƒ๊ด€์—†์ง€๋งŒ, conda๊ฐ€ ์œ ๋ฃŒํ™”๋˜์—ˆ๋‹ค.  Pricing | AnacondaAnaconda is the birthplace of Python data science. We are a movement of data scientists, data-driven enterprises, and open source communities.www.anaconda.com์ด ์ฐธ์— venv๋ฅผ ์จ๋ณด๊ธฐ๋กœ ํ•˜์˜€์œผ๋‚˜, ์™ ์ง€ ๋ถˆํŽธํ•ด conda์ฒ˜๋Ÿผ ์‚ฌ์šฉํ•˜๋„๋ก ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ƒ์„ฑ(GPT)ํ–ˆ๋‹ค. ์Šคํฌ๋ฆฝํŠธ$HOME/.venvs/v..

ํŒŒ์ด์ฌ GIL : multithreading, multiprocessing

์•ˆ๋…•ํ•˜์„ธ์š”. ์ด ๋น„๋””์˜ค์—์„œ๋Š” Python์—์„œ ๋ฉ€ํ‹ฐํ”„๋กœ์„ธ์‹ฑ๊ณผ ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋”ฉ์„ ๋น„๊ตํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ์ด์ œ Python์˜ ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋”ฉ๊ณผ ๊ด€๋ จํ•˜์—ฌ ๋‘ ๊ฐ€์ง€ ์ฃผ์žฅ์„ ๋งŽ์ด ๋“ฃ์Šต๋‹ˆ๋‹ค. ์ฒซ ๋ฒˆ์งธ๋Š” Python์ด ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋“œ๋ฅผ ์ง€์›ํ•œ๋‹ค๋Š” ๊ฒƒ์ด๊ณ , ๋‘ ๋ฒˆ์งธ๋Š” Python์ด ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋“œ๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ๊ทธ๋ ‡๋‹ค๋ฉด ์–ด๋Š ๊ฒƒ์ด ๋งž์„๊นŒ์š”? ์ œ๊ฐ€ ์ƒ๊ฐํ•˜๊ธฐ์—๋Š” ์ •ํ™•ํ•œ ํ‘œํ˜„์€ Python์ด ๋ฉ€ํ‹ฐ์Šค๋ ˆ๋“œ๋ฅผ ์ง€์›ํ•˜์ง€๋งŒ ๋™์‹œ์— ์—ฌ๋Ÿฌ ์Šค๋ ˆ๋“œ๊ฐ€ ์‹คํ–‰๋  ์ˆ˜ ์—†๋‹ค๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. ์ฆ‰, ๋‘ ๊ฐœ์˜ ์Šค๋ ˆ๋“œ๊ฐ€ ๋™์‹œ์— ์‹คํ–‰๋  ์ˆ˜๋Š” ์—†์Šต๋‹ˆ๋‹ค.๊ทธ๋ ‡๋‹ค๋ฉด ์Šค๋ ˆ๋“œ๋ž€ ๋ฌด์—‡์ผ๊นŒ์š”? ์ด๋ฅผ ์ดํ•ดํ•˜๊ธฐ ์œ„ํ•ด ๋จผ์ € ํ”„๋กœ์„ธ์Šค๊ฐ€ ๋ฌด์—‡์ธ์ง€ ์•Œ์•„์•ผ ํ•ฉ๋‹ˆ๋‹ค. ํ”„๋กœ์„ธ์Šค๋Š” ํ”„๋กœ๊ทธ๋žจ์˜ ์ธ์Šคํ„ด์Šค์ž…๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, Firefox์˜ ์ธ์Šคํ„ด์Šค๋‚˜ ์—ฌ๋Ÿฌ ๊ฐœ์˜ Microsoft Word ์ธ์Šคํ„ด์Šค๊ฐ€ ์žˆ์„ ์ˆ˜..

ํŒŒ์ด์ฌ ๋น„๋™๊ธฐ ํ”„๋กœ๊ทธ๋ž˜๋ฐ

ํŒŒ์ด์ฌ Generator Generators - Python WikiGenerator functions allow you to declare a function that behaves like an iterator, i.e. it can be used in a for loop. Simplified Code The simplification of code is a result of generator function and generator expression support provided by Python. To illuswiki.python.org Coroutine ์ฝ”๋ฃจํ‹ด - ์œ„ํ‚ค๋ฐฑ๊ณผ, ์šฐ๋ฆฌ ๋ชจ๋‘์˜ ๋ฐฑ๊ณผ์‚ฌ์ „์œ„ํ‚ค๋ฐฑ๊ณผ, ์šฐ๋ฆฌ ๋ชจ๋‘์˜ ๋ฐฑ๊ณผ์‚ฌ์ „. ์ฝ”๋ฃจํ‹ด(coroutine)์€ ๋ฃจํ‹ด์˜ ์ผ์ข…์œผ๋กœ์„œ, ํ˜‘๋™ ๋ฃจํ‹ด์ด๋ผ ํ• ..

[programming in Scala] 01. ์Šค์นผ๋ผ ํ™˜๊ฒฝ ์„ค์ •

# 0. jdk ์„ค์น˜ sudo apt install openjdk-11-jdk # 1. Scala ์„ค์น˜ (cs setup) curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup # 2. IntelliJ Scala Plugin ์„ค์น˜ # 3. IntelliJ ์—์„œ, Settings > Build, Execution, Deployment > Build Tools > sbt > sbt project: sbt shell > Allow overring sbt version ์„ uncheck. build.properties์— ๋ฒ„..

[Go] Go for Beginners

์‰ฝ๊ณ  ๋น ๋ฅธ Go ์‹œ์ž‘ํ•˜๊ธฐ – ๋…ธ๋งˆ๋“œ ์ฝ”๋” Nomad Coders Learn Go Fast nomadcoders.co ์ž‘์—… ํ™˜๊ฒฝ์€ C:\Go์— bin src pkg ํด๋”๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค(๊ถŒ์žฅ). Go๋Š” ํ•จ์ˆ˜์˜ ์ฒซ ๊ธ€์ž๊ฐ€ ๋Œ€๋ฌธ์ž/์†Œ๋ฌธ์ž ์ธ์ง€๋กœ public/private์„ ๊ตฌ๋ถ„ํ•œ๋‹ค. ํƒ€์ž… ์–ธ์–ด์ด๊ธฐ ๋•Œ๋ฌธ์—, ๊ธฐ๋ณธ์ ์œผ๋กœ ํƒ€์ž…์„ ๋ช…์‹œํ•ด์ค˜์•ผ ํ•˜์ง€๋งŒ, ํ•จ์ˆ˜ ์•ˆ์—์„œ ':=' ๊ธฐํ˜ธ๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์•Œ์•„์„œ ์„ค์ •ํ•œ๋‹ค. ํ•˜๋‚˜์˜ ํ•จ์ˆ˜๊ฐ€ ๋‹ค์–‘ํ•œ ์ž๋ฃŒํ˜•์„ ๋ฐ˜ํ™˜ํ•œ๋‹ค. ์„ ์–ธํ•œ ๋ณ€์ˆ˜๋ฅผ ์‚ฌ์šฉํ•œ ์ ์ด ์—†๋‹ค๋ฉด ์—๋Ÿฌ๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค. ํ•จ์ˆ˜์—์„œ "naked" return(ํ•จ์ˆ˜ ์„ ์–ธ ์‹œ ๋ฐ˜ํ™˜ํ•  ํƒ€์ž…๊ณผ ํ•จ๊ป˜ ๋ณ€์ˆ˜ ๋ช…์„ ๊ฐ™์ด ์„ ์–ธ), defer(ํ•จ์ˆ˜ ์ข…๋ฃŒ ํ›„ ์‹คํ–‰๋˜๋Š” ์ฝ”๋“œ) ๋“ฑ์˜ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ฐ˜๋ณต๋ฌธ nubmers := [5]int{1, 2, 3, 4, 5..

[ํŒŒ์ด์ฌ] Flask ์‚ฌ์šฉ ์‹œ ๋””์ž์ธ ํŒจํ„ด

๊ฐœ๋ฐœํ•œ ์ฝ”๋“œ๊ฐ€ ์•„๋ž˜ ๋ถ€ํ•ฉํ•˜๋Š”์ง€ ํ™•์ธํ•˜๊ณ  ์ˆ˜์ •. ์„ค๊ณ„ ๋‹จ๊ณ„์—์„œ ๊น”๋”ํ•˜๊ฒŒ ํ–ˆ์–ด์•ผ ํ•˜๋Š”๋ฐ, ์„ค๊ณ„ ๋‹จ๊ณ„๊ฐ€ ์–ผ๋งˆ๋‚˜ ๊ฐœ๋ฐœ์— ์žˆ์–ด ์ค‘์š”ํ•œ์ง€ ๊นจ๋‹ซ๊ฒŒ ๋˜๋Š” ๊ณ„๊ธฐ๊ฐ€ ๋๋‹ค. Model-View-Controller (MVC) Explained – With Legos – Real Python This article details the Model-View-Controller (MVC) design pattern with Legos! realpython.com ๊ฐ์ฒด์ง€ํ–ฅ ์„ค๊ณ„ ์›์น™ 5๊ฐ€์ง€ ์ง€๋‚œ ํฌ์ŠคํŒ… ๊ฐ์ฒด์ง€ํ–ฅ ์ฃผ์š”ํŠน์ง•์— ์ด์–ด ์ด๋ฒˆ์—” ๊ฐ์ฒด์ง€ํ–ฅ์˜ ์ฃผ์š” 5๊ฐ€์ง€ ์›์น™์„ ์ •๋ฆฌํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. ๊ฐ์ฒด์ง€ํ–ฅ 5๊ฐ€์ง€ ์›์น™์ธํ”„๋Ÿฐ์—์„œ ์Šคํ”„๋ง ํ•ต์‹ฌ ์›๋ฆฌ - ๊ธฐ๋ณธํŽธ์„ ์ˆ˜๊ฐ•ํ•˜๋ฉฐ ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ด๋‹ค. ํ† ๋น„ youngjinmo.github.io [Django/์žฅ๊ณ ]..

[ํŒŒ์ด์ฌ] ํด๋ฆฐ ์•„ํ‚คํ…์ณ, TDD

https://www.thedigitalcatonline.com/blog/2016/11/14/clean-architectures-in-python-a-step-by-step-example/ The Digital Cat - Clean architectures in Python: a step-by-step example In 2015 I was introduced by my friend Roberto Ciatti to the concept of Clean Architecture, as it is called by Robert Martin. The well-known Uncle Bob talks a lot about this concept at conferences and wrote some very inte..

[ํŒŒ์ด์ฌ] ํ•œ ๊ฐœ์˜ Form์—์„œ ์—ฌ๋Ÿฌ ๊ฐœ Submit

https://kutar37.tistory.com/entry/%ED%95%9C%EA%B0%9C%EC%9D%98-Form%EC%97%90%EC%84%9C-%EC%97%AC%EB%9F%AC%EA%B0%9C-Submit-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0 ํ•œ๊ฐœ์˜ Form์—์„œ ์—ฌ๋Ÿฌ๊ฐœ Submit ์‚ฌ์šฉํ•˜๊ธฐ Multiple submit in Single Form ํ•œ๊ฐœ์˜ ํƒœ๊ทธ์—์„œ ์—์„œ ์—ฌ๋Ÿฌ๊ฐœ์˜ submit ๋ฒ„ํŠผ์„ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฌด์—‡์ด ๊ฐ€์žฅ ์šฐ์•„ํ•œ ๋ฐฉ๋ฒ•์ผ๊นŒ์š”? onclick - 1 ์•„๋งˆ ์•„๋ž˜์™€ ๊ฐ™์€ ์ฝ”๋“œ๋ฅผ ๋งŽ์ด ๋ณด์…จ์„ ๊ฒ๋‹ˆ๋‹ค. $("#update"). kutar37.tistory.com

[ํŒŒ์ด์ฌ] Pandas ๋‚ ์งœ๋ฅผ ์ด์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ ์กฐํšŒ

https://zephyrus1111.tistory.com/69 [Pandas] 13. ๋‚ ์งœ๋ฅผ ์ด์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ ์กฐํšŒํ•˜๊ธฐ ์•ˆ๋…•ํ•˜์„ธ์š”~ ๊ฝ๋ƒฅ์ด์—์š”. ๋ฐ์ดํ„ฐ๋Š” ์‹œ๊ฐ„์— ๋”ฐ๋ผ์„œ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์ง€์š”. ๋”ฐ๋ผ์„œ ๋ฐ์ดํ„ฐ ์†์—๋Š” ์–ธ์ œ ์ƒ์„ฑ๋˜์—ˆ๋Š”์ง€ ์•Œ๋ ค์ฃผ๋Š” ์‹œ๊ฐ„ ๋˜๋Š” ๋‚ ์งœ ์ •๋ณด๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์ง€์š”. ์ด์— ๋”ฐ๋ผ ๋‚ ์งœ ์ •๋ณด๋ฅผ zephyrus1111.tistory.com