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

[ํŒŒ์ด์ฌ ] Flask ์ด๋ฏธ์ง€ ๊ฒฝ๋กœ ๋ฌธ์ œ

Flask ์•ฑ์€ ํ•ด๋‹น ํด๋” ๋‚ด static์ด๋ผ๋Š” ์ด๋ฆ„์˜ ํด๋”์—์„œ ํŒŒ์ผ์„ ์ฐธ์กฐํ•˜๋„๋ก ์„ค์ •๋˜์–ด ์žˆ์Œ. Flask not serving pictures I created a small Flask app for the purpose of processing and presenting data for my local consumption on my local machine. My Flask app processes data in a subfolder and then opens a webpage to d... stackoverflow.com

[ํŒŒ์ด์ฌ] Flask ์›น ํ”„๋ ˆ์ž„์›Œํฌ ํŠœํ† ๋ฆฌ์–ผ

https://m.blog.naver.com/dsz08082/221797865031 [Python] ํŒŒ์ด์ฌ ์›น ๊ฐœ๋ฐœ. #๊ฐœ๋ฐœ ํ”„๋ ˆ์ž„์›Œํฌ, Django์™€ Flask ๋น„๊ต #๊ฐœ๋ฐœ ํ”„๋ ˆ์ž„์›Œํฌ # ์›น์„ ๊ตฌ์„ฑํ•˜๋Š” ๋Œ€ํ‘œ ์–ธ์–ด๋Š” PHP. JS ๋“ฑ์ด๋‹ค. ์ด์™ธ ์–ธ์–ด์—์„œ ์ œ๊ณตํ•˜๋Š” ๊ฐœ๋ฐœ ํ”„๋ ˆ์ž„... blog.naver.com ์‹œ๋ฆฌ์ฆˆ ์ •์ฃผํ–‰

[ํŒŒ์ด์ฌ] Flask ์™€ Pandas ์—ฐ๋™

https://frhyme.github.io/python-lib/flask_pandas/ flask์™€ pandas๋ฅผ ์—ฐ๊ฒฐํ•ด๋ด…์‹œ๋‹ค. flask์™€ pd.DataFrame ์—ฐ๋™ํ•˜๊ธฐ frhyme.github.io https://stackoverflow.com/questions/52644035/how-to-show-a-pandas-dataframe-into-a-existing-flask-html-table How to show a pandas dataframe into a existing flask html table? This may sound a noob question, but I'm stuck with it as Python is not one of my best languages. I have a htm..

[ํŒŒ์ด์ฌ] ํ”„๋กœ์ ํŠธ์—์„œ ์„ค์ • ๊ฐ’ ๊ด€๋ฆฌํ•˜๊ธฐ

https://mingrammer.com/ways-to-manage-the-configuration-in-python/ ํŒŒ์ด์ฌ์—์„œ ์„ค์ •๊ฐ’ ๊ด€๋ฆฌํ•˜๊ธฐ ์„œ๋ฒ„๋ฅผ ๊ฐœ๋ฐœํ•˜๋‹ค๋ณด๋ฉด ํ•ญ์ƒ ๋งˆ์ฃผ์น˜๋Š” ๋ฌธ์ œ๊ฐ€ ์žˆ๋Š”๋ฐ ๋ฐ”๋กœ ์„ค์ •๊ฐ’ (Configuration)์„ ์–ด๋–ป๊ฒŒ ๊ด€๋ฆฌํ•˜๋Š๋ƒ์ด๋‹ค. ๋น„๋‹จ, ์„œ๋ฒ„ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ์„ค mingrammer.com https://wikidocs.net/81074 4-06 ์„œ๋ฒ„·๊ฐœ๋ฐœ ํ™˜๊ฒฝ์„ ์œ„ํ•œ config ๋ถ„๋ฆฌํ•˜๊ธฐ `[์™„์„ฑ ์†Œ์Šค]` : [github.com/pahkey/flaskbook/tree/4-06](https://github.com/pahkey/flaskbook/tree/4-0 ... wikidocs.net

[ํŒŒ์ด์ฌ] ํŒŒ์ด์ฌ Naming Convention

https://www.python.org/dev/peps/pep-0008/#package-and-module-names PEP 8 -- Style Guide for Python Code The official home of the Python Programming Language www.python.org [Python] ๋ณ€์ˆ˜๋ช… Naming Convention ํŒŒ์ด์ฌ์—์„œ๋Š” ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜์€ ์–ด๋–ป๊ฒŒ ํ‘œํ˜„์„ ํ• ๊นŒ? ์šฐ์„  ๋„ค์ด๋ฐ ์ปจ๋ฒค์…˜์—๋Š” ์„ธ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค. ๋Œ€๋ฌธ์ž๋กœ ๊ตฌ๋ณ„ํ•˜๊ณ  ์†Œ๋ฌธ์ž๋กœ ์‹œ์ž‘ํ•˜๋Š” ์นด๋ฉœ ์ผ€์ด์Šค(Camel case) _ Lower Camel Case camelCase: int = 1 ๋Œ€ security-nanglam.tistory.com

[ํŒŒ์ด์ฌ] ๊ตฌ๊ธ€ ์Šคํ”„๋ ˆ๋“œ ์‹œํŠธ ์—ฐ๋™ ๋ฐ ์‹œ๊ฐํ™”

https://hyeshinoh.github.io/2020/04/18/python_18_pygsheets/ python 18. ํŒŒ์ด์ฌ์œผ๋กœ ๊ตฌ๊ธ€์Šคํ”„๋ ˆ๋“œ์‹œํŠธ ๋‹ค๋ฃจ๊ธฐ - pygsheets ํŒจํ‚ค์ง€ jupyternotebook์œผ๋กœ ๋ณด๊ธฐ ์•„๋งˆ๋„ ์ƒ๋‹นํžˆ ๋งŽ์€ ์‚ฌ๋žŒ๋“ค์ด ์—…๋ฌด ํ˜น์€ ๊ฐœ์ธ ์šฉ๋„๋กœ ๊ตฌ๊ธ€์Šคํ”„๋ ˆ๋“œ์‹œํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์„ ๊ฒƒ์ด๋‹ค.๊ตฌ๊ธ€์Šคํ”„๋ ˆ๋“œ์‹œํŠธ๋Š” ์‰ฝ๊ฒŒ ๋งํ•ด ๊ตฌ๊ธ€ ์•„์ด๋””๋งŒ ์žˆ๋‹ค๋ฉด ๋ฌด๋ฃŒ๋กœ ์˜จ๋ผ์ธ ์ƒ์— hyeshinoh.github.io

[JAVA] ๋””์ž์ธ ํŒจํ„ด

[๋ฌด๋ฃŒ] ์ž๋ฐ” ๋””์ž์ธ ํŒจํ„ด์˜ ์ดํ•ด - Gof Design Pattern - ์ธํ”„๋Ÿฐ | ๊ฐ•์˜ ์ž๋ฐ” ๋””์ž์ธ ํŒจํ„ด ์ดํ•ดํ•˜๊ธฐ ๊ฐ•์ขŒ ์ž…๋‹ˆ๋‹ค. ์—ฌ๋Ÿฌ๊ฐ€์ง€ ๋””์ž์ธ ํŒจํ„ด๋“ค์„ ์•Œ์•„๋ณด๋ฉฐ ๋””์ž์ธ ํŒจํ„ด์— ๋Œ€ํ•œ ์ดํ•ด๋„๋ฅผ ๋†’์ด๋„๋ก ๋„์™€์ค๋‹ˆ๋‹ค. Gof Design Pattern์„ ์ž๋ฐ” ์–ธ์–ด๋กœ ์„ค๋ช…ํ•œ ๊ฐ•์˜. ์˜๋ฏธ ์žˆ๊ณ  ์‰ฌ์šด ์˜ˆ www.inflearn.com

[ํŒŒ์ด์ฌ] ๋ฐฐ์—ด ์ธ๋ฑ์‹ฑ

ํŒŒ์ด์ฌ ๋ฐฐ์—ด ์ธ๋ฑ์‹ฑ 7. Numpy array ์ธ๋ฑ์‹ฑ( ๊ธฐ๋ณธ์ธ๋ฑ์‹ฑ, boolean์ธ๋ฑ์‹ฑ(๋งˆ์Šคํฌ)) array indexing ๋„˜ํŒŒ์ด์˜ ๊ฝƒ์ด๋ผ๊ณ  ํ•˜๋Š” ์ธ๋ฑ์‹ฑ์€, ์„ฑ๋ถ„์„ ์ถ”์ถœํ•  ๋•Œ ํ•„์š”ํ•œ ๊ฒƒ์ด๋‹ค. ๋จผ์ € ๋„˜ํŒŒ์ด๋ฅผ importํ•˜๊ณ , array๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค์–ด์ง„๋‹ค. index๋Š” 0๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๊ธฐ ๋•Œ๋ฌธ์—, [5]๋Š”ํ•ด์„œ 6ํ–‰or 6์—ด์œผ๋กœ ํ•ด์„ํ•œ nittaku.tistory.com ์ธ๋ฑ์Šค์— ์Œ์ˆ˜? Python ๋ฆฌ์ŠคํŠธ ์ธ๋ฑ์‹ฑ & ์Šฌ๋ผ์ด์‹ฑ์— ์Œ์˜ ๊ฐ’(๋งˆ์ด๋„ˆ์Šค) ์‚ฌ์šฉํ•ด ๋ณด๊ธฐ Python, Pandas๋ฅผ Excel๋ณด๋‹ค ์‚ฌ๋ž‘ํ•˜๋Š” ์ง์žฅ์ธ์„ ์œ„ํ•œ ๋ธ”๋กœ๊ทธ emilkwak.github.io

[ํŒŒ์ด์ฌ] ์—‘์…€ ํŒŒ์ผ ์—ฐ๋™(openpyxl)

0. ์ƒ์„ฑ ๋ฐ ๊ธฐ๋ก import openpyxl openpyxl ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋ถˆ๋Ÿฌ์˜จ๋‹ค. wb = openpyxl.Workbook() sheet = wb.active sheet['A1'] = "Type" sheet['B1'] = "Name" sheet['C1'] = "Age" sheet['D1'] = "Fruit" ํ‘œ๋ฅผ ํ•˜๋‚˜ ๋งŒ๋“ค๊ณ , A1, B1, C1, D1์— ์†์„ฑ๊ฐ’๋“ค์„ ๊ธฐ๋กํ•ด์ค€๋‹ค. TYPE = ['๋ž˜ํผ', '์ค‘๊ณ ์ฐจํŒ๋งค์›', '์นดํŽ˜์‚ฌ์žฅ', ...] NAME = ['implanted_kid', '์ฐจ์ง„์„', '์ตœ์ค€', ...] AGE = [26, 34, 32, ...] for i in range(2, 2002) sheet.cell(row=i, column=1).value = TYPE[i] sheet.cell..