From 9be383c485d8e2c9b1c7903667d82d9d601fb3b2 Mon Sep 17 00:00:00 2001 From: Lee Sarah Date: Mon, 30 Oct 2023 16:24:55 +0900 Subject: [PATCH] Create day-11.md --- content/post/DevCourse/day-11.md | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 content/post/DevCourse/day-11.md diff --git a/content/post/DevCourse/day-11.md b/content/post/DevCourse/day-11.md new file mode 100644 index 0000000..64f38ea --- /dev/null +++ b/content/post/DevCourse/day-11.md @@ -0,0 +1,44 @@ ++++ +author = "Seorim" +title = "Day 11" +date = 2023-10-30T12:39:04+09:00 + +categories = [ + "DevCourse", +] +tags = [ + "TIL", +] ++++ + +# TIL - + +## ๐Ÿ“‹ย ๊ณต๋ถ€ ๋‚ด์šฉ + +### + +#### + +## ๐Ÿ‘€ย CHECK + +_(์–ด๋ ต๊ฑฐ๋‚˜ ์ƒˆ๋กญ๊ฒŒ ์•Œ๊ฒŒ ๋œ ๊ฒƒ ๋“ฑ ๋‹ค์‹œ ํ™•์ธํ•  ๊ฒƒ๋“ค)_ + +[vscode ํŒŒ์ด์ฌ ๊ฐ€์ƒํ™˜๊ฒฝ ์„ธํŒ… ์ฐธ๊ณ  ๋ธ”๋กœ๊ทธ](https://blog.devwon.site/python/2021/08/01/Vscode-venv-python-interpreter/) + +```python +def __str__(self): + return f"์ œ๋ชฉ: {self.question_text}, ๋‚ ์งœ: {self.pub_date}" +``` + +string ์ธํ„ฐํด๋ ˆ์ด์…˜? ๋ฌธ์ž์—ด ๋ณด๊ฐ„ +[์ฐธ๊ณ  ๋ธ”๋กœ๊ทธ](https://velog.io/@cmin95/Python-string-interpolation) + +์—๋Ÿฌ๋…ธํŠธ + +- Error: That port is already in use. + - Ctrl + z ๋กœ ์ข…๋ฃŒํ•ด์„œ ์„œ๋ฒ„๊ฐ€ ์ œ๋Œ€๋กœ ์ข…๋ฃŒ๋˜์ง€ ์•Š์•„ ์ƒ๊ธฐ๋Š” ์—๋Ÿฌ + - Ctrl + c ๋กœ ์ข…๋ฃŒํ•  ๊ฒƒ + - lsof -i:8000 ์œผ๋กœ 8000 ํฌํŠธ์—์„œ ๋Œ์•„๊ฐ€๋Š” ์„œ๋ฒ„ ํ™•์ธ + - kill -9 {port number} ์œผ๋กœ ํ”„๋กœ์„ธ์Šค ์ฃผ๊น€ + +## โ— ๋Š๋‚€ ์ 