profile
๐Ÿพ

2.9 Generators #Writing Idiomatic Python 3.1

list comprehension => ๋ชจ๋“  ์›์†Œ๊ฐ€ ๋“ค์–ด์žˆ๋Š” listํฌ๊ธฐ๊ฐ€ ํฐ ๊ฒฝ์šฐ์— ๋ฉ”๋ชจ๋ฆฌ๋ถ€์กฑgenerator expression => generatorํ•„์š”ํ•  ๋•Œ๋งˆ๋‹ค ๊ฐ ์›์†Œ๋ฅผ ์ƒ์„ฑ๋ฌดํ•œํ•œ ์‹œํ€€์Šค๋ฅผ ๋ฐ˜๋ณตํ•ด์•ผ ํ•  ๋•Œ๋‚˜ ์—„์ฒญ ํฐ ํฌ๊ธฐ์˜ ์‹œํ€€์Šค๋ฅผ ๊ณ„์‚ฐํ•ด์•ผ ํ•  ๋•Œ ์‚ฌ์šฉ์ž๊ฐ€ ๊ณ„

2022๋…„ 7์›” 27์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.8 Context Managers #Writing Idiomatic Python 3.1

with statement ์‚ฌ์šฉ -> ๋ฆฌ์†Œ์Šค ๊ด€๋ฆฌ๋ฅผ ์ข€๋” ์•ˆ์ „ํ•˜๊ณ  ๋ช…ํ™•ํ•˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Œex) file IO๋งŒ์•ฝ if raise_exception(line) ์—์„œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด, ์—๋Ÿฌ๋ฅผ ๋”ฐ๋กœ ์žก๋Š” ์ฝ”๋“œ๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์—, it will propagate up the sta

2022๋…„ 7์›” 27์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.7 Classes #Writing Idiomatic Python 3.1

1. isinstance ํ•จ์ˆ˜ ์‚ฌ์šฉํ•ด์„œ ๊ฐ์ฒด์˜ type ์•Œ์•„๋‚ด๊ธฐ ๐Ÿ‘Ž > ๐Ÿ‘ >

2022๋…„ 7์›” 7์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.6 Tuple #Writing Idiomatic Python 3.1

namedtuples๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด index ๋Œ€์‹  ํ•„๋“œ ์ด๋ฆ„์œผ๋กœ ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋‹ค.index๋กœ ์ ‘๊ทผ

2022๋…„ 6์›” 16์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.5 Sets #Writing Idiomatic Python 3.1

Union \- A | BIntersection \- A & BDifference \- A - BSymmetric Difference \- A ^ B

2022๋…„ 5์›” 30์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

[Django] ๋น„๋ฐ€๋ฒˆํ˜ธ ์žฌ์„ค์ • ๋ฉ”์ผ ๋ณด๋‚ด๊ธฐ

https://docs.djangoproject.com/en/4.0/topics/auth/default/SMTP: Simple Mail Transfer Protocol์ธํ„ฐ๋„ท์—์„œ ์ด๋ฉ”์ผ์„ ๋ณด๋‚ด๊ธฐ ์œ„ํ•ด ์ด์šฉ๋˜๋Š” ํ”„๋กœํ† ์ฝœ์‚ฌ์šฉํ•˜๋Š” TCP ํฌํŠธ๋ฒˆํ˜ธ๋Š” 25๋ฒˆ์ด๋‹ค.Send

2022๋…„ 3์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

[drf, djangorestframework-simplejwt] username ๋Œ€์‹  email๋กœ ์ธ์ฆํ•˜๊ธฐ

django app ์ด๋ฆ„: account๋ผ๋Š” ๊ฐ€์ •ํ•˜์— ์ง„ํ–‰djangorestframework-simplejwt ๋ฅผ ์ด์šฉํ•ด์„œ access token, refresh token์œผ๋กœ ์‚ฌ์šฉ์ž๋ฅผ ์ธ์ฆํ•  ์˜ˆ์ •comment 1)admin ํŽ˜์ด์ง€์—์„œ createsuperuser๋กœ ๋งŒ

2022๋…„ 3์›” 10์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.4 ๋”•์…”๋„ˆ๋ฆฌ #Writing Idiomatic Python 3.1

if ๋ฌธ์„ ์‚ฌ์šฉํ•  ํ•„์š”๊ฐ€ ์—†์ด ์ฝ”๋“œ๊ฐ€ ๋ช…ํ™•ํ•ด์ง„๋‹ค

2022๋…„ 3์›” 4์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.3 ๋ฆฌ์ŠคํŠธ #Writing Idiomatic Python 3.1

list comprehension์„ ์‚ฌ์šฉํ•˜๋ฉด ๊ธฐ์กด ๋ฆฌ์ŠคํŠธ์˜ ๊ฐ ์›์†Œ๋ฅผ ๋Œ๋ฉด์„œ ์กฐ๊ฑด์„ ์ฒดํฌํ•˜๊ณ  ๋ณ€ํ˜•ํ•ด์„œ ๋‹ค์‹œ ์ €์žฅํ• ๋•Œ ์ฝ”๋“œ์˜ ๊ฐ€๋…์„ฑ์„ ๋†’์—ฌ์ฃผ๊ณ ,cPython ์ธํ„ฐํ”Œ๋ฆฌํ„ฐ๊ฐ€ ์ตœ์ ํ™”๋ฅผ ํ•ด์ค˜์„œ ์„ฑ๋Šฅ์ƒ์˜ ์ด์ ๋„ ์žˆ๋‹ค๊ณ  ํ•œ๋‹ค.์Œ์ˆ˜ ์ธ๋ฑ์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋ชฉ๋ก์˜ ๋์—์„œ๋ถ€ํ„ฐ ๊ฑฐ๊พธ๋กœ ์„ผ ์ง€์ 

2022๋…„ 3์›” 4์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

Bloc

https://bloclibrary.dev/#/

2022๋…„ 2์›” 28์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

x264 FFmpeg Options Guide

https://sites.google.com/site/linuxencoding/x264-ffmpeg-mapping

2022๋…„ 2์›” 28์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.2 ๋ฌธ์ž์—ด(Strings) #Writing Idiomatic Python 3.1

๋ฌธ์ž์—ด์„ ์—ฐ์†์œผ๋กœ ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ๋•Œ, ์ด๋ ‡๊ฒŒ ๊ฐ ๋‹จ๊ณ„์—์„œ ์ž„์‹œ ๋ณ€์ˆ˜๋ฅผ ๋งŒ๋“ค์ง€ ๋ง๊ณ ํ•จ์ˆ˜๋ฅผ ์ด์–ด์„œ(Chain) ์‚ฌ์šฉํ•˜์žlist ์˜ ์›์†Œ๋“ค์„ ์—ฐ๊ฒฐํ•ด์„œ ํ•˜๋‚˜์˜ ์ŠคํŠธ๋ง์œผ๋กœ ๋ณ€ํ™˜ํ•  ๋•Œ์—๋Š”''.join()์„ ์‚ฌ์šฉํ•˜๋ฉด ๋” ๋น ๋ฅด๊ณ  ๋ฉ”๋ชจ๋ฆฌ๋„ ๋œ ์‚ฌ์šฉํ•œ๋‹ค.๋ฌผ๋ก  '' ์ž๋ฆฌ์—๋Š” '' ๋ง๊ณ ๋„ ์—ฐ

2022๋…„ 2์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

2.1 ๋ณ€์ˆ˜ #Writing Idiomatic Python 3.1

ํŒŒ์ด์ฌ์—์„œ๋Š” ์จ๋“œํŒŒํ‹ฐ ํŒจํ‚ค์ง€๋‚˜ ํŒŒ์ด์ฌ ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ํฌํ•จํ•œ ๋งŽ์€ ๊ณณ์—์„œ ์˜ˆ์™ธ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค.์‚ฌ์‹ค ํŒŒ์ด์ฌ ์–ธ์–ด ์ž์ฒด์—๋„ ์˜ˆ์™ธ๊ฐ€ ๋“ค์–ด์žˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, for loop์—์„œ๋„ ์˜ˆ์™ธ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค.์ž„์‹œ ๋ณ€์ˆ˜(temp)๋ฅผ ๊ตณ์ด ์‚ฌ์šฉํ•  ํ•„์š”๊ฐ€ ์—†๋‹ค.ํŠœํ”Œ์„ ์‚ฌ์šฉํ•˜๋Š”๊ฒŒ ํ›จ์”ฌ ๋ช…๋ฃŒํ•˜

2022๋…„ 2์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

[์•ฑ์Šคํ† ์–ด] ์Šคํฌ๋ฆฐ์ƒท ์‚ฌ์–‘

https://help.apple.com/app-store-connect/#/devd274dd925

2022๋…„ 2์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

[ios ๋ฐฐํฌ] App Store Connect Operation Error - png ์•„์ด์ฝ˜ ํŒŒ์ผ์˜ ์•ŒํŒŒ ์ฑ„๋„ ํฌํ•จ ๋ฌธ์ œ

Invalid App Store Icon. The App Store Icon in the asset catalog in 'Runner.app' can't be transparent nor contain an alpha channel.ios ๋ฐฐํฌ๋ฅผ ์œ„ํ•ด Archive >

2022๋…„ 2์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

[์ฑ…ํฌ์ธ 1๊ธฐ] ๋ฏธ์…˜

์˜ฌํ•ด๋Š” ๊ฐœ๋ฐœ ์ฑ… ์™ธ์—๋„ ๋‹ค์–‘ํ•œ ๋ถ„์•ผ์˜ ์ฑ…์„ ๋งŽ์ด ์ฝ์–ด์•ผ ๊ฒ ๋‹ค๊ณ  ์ƒ๊ฐํ•˜๊ณ  ์žˆ์—ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‹ค ๋งˆ์นจ ๋‚ด๊ฐ€ ๋“ค์–ด์žˆ๋˜ ์Šคํ„ฐ๋”” ๋ชจ์ž„์—์„œ ๋ถํด๋Ÿฝ์„ ์‹œ์ž‘ํ•œ๋‹ค๊ณ  ํ–ˆ๊ณ , ์ฑ… ์ฝ๊ธฐ๋„ ๊ฐ™์ด ํ•˜๋ฉด ๋” ์žฌ๋ฐŒ๊ฒŒ ๋๊นŒ์ง€ ์ฝ์„ ์ˆ˜ ์žˆ์ง€ ์•Š์„๊นŒ ํ•˜๋Š” ๋งˆ์Œ์— ์‹ ์ฒญํ•˜๊ฒŒ ๋˜์—ˆ๋‹ค.์ž๊ธฐ๊ณ„๋ฐœ์„œ๋ณด๋‹ค๋Š” ์†Œ์„ค ๊ฐ™์€ ์ฑ…

2022๋…„ 2์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

firebase firestore ์‚ฌ์šฉ

To do ๊ธฐ์กด์— ์œ ๊ธฐ๊ฒฌ ๋ณดํ˜ธ์†Œ ์ •๋ณด๊ฐ€ ๋ช‡๊ฐœ ๋˜์ง€ ์•Š์•„์„œ ์šฐ์„  constant๋กœ ํ•˜๋“œ์ฝ”๋”ฉ ํ–ˆ๋Š”๋ฐ, ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ •ํ•˜๊ณ  ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•ด์„  ๋”ฐ๋กœ ๊ด€๋ฆฌํ•˜๋Š”๊ฒŒ ๋งž๊ฒ ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค. ๊ทธ๋ž˜์„œ firebase์˜ firebase๋ฅผ ์‚ฌ์šฉํ•ด๋ณด๋ ค๊ณ  ํ•œ๋‹ค. firebase ์„ค์ • 1. cons

2022๋…„ 1์›” 30์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

Warning: Mapping new ns ๊ฒฝ๊ณ 

gradle plugin ์ด ์˜ˆ์ „ ๋ฒ„์ „์ด์–ด์„œgradle plugin version ์—…๋ฐ์ดํŠธandroid/build.gradle ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์ˆ˜์ •android/gradle/wrapper/gradle-wrapper.properties ์ˆ˜์ •android/gradle/wra

2022๋…„ 1์›” 30์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

ํŒฉํ† ๋ฆฌ ๋ฉ”์†Œ๋“œ(Factory Method) Pattern

ํŒฉํ† ๋ฆฌ: ๊ณต์žฅ. ์ฆ‰ ํŠน์ • ์—ญํ• ์„ ๊ฐ€์ง„ ๊ฐ์ฒด๋ฅผ ์ƒ์‚ฐํ•œ๋‹ค๋Š” ๋œป.๊ฐ์ฒด๋ฅผ ๋งŒ๋“ค์–ด๋‚ด๋Š” ๋ถ€๋ถ„์„ ์„œ๋ธŒ ํด๋ž˜์Šค์— ์œ„์ž„ํ•˜๋Š” ํŒจํ„ด์ด๋‹ค.๋‹ค์–‘ํ•œ ์ œํ’ˆ๊ตฐ์˜ DB Connection ์—ญํ• ์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฉ”์†Œ๋“œํŒฉํ† ๋ฆฌ ํŒจํ„ด ๋ฐ ํด๋ž˜์Šค ๋‹คํ˜•์„ฑ์„ ์ถ”๊ฐ€ํ•ด์„œ ์ ์šฉ

2022๋…„ 1์›” 24์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

1.4 ์˜ˆ์™ธ #Writing Idiomatic Python 3.1

3\.

2022๋…„ 1์›” 18์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท