์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- FastAPI
- ibatis
- Android
- ์ปฌ๋ ์ ํ๋ ์์ํฌ
- ๋งฅ
- Java
- Oracle
- html
- ์ํ์ฝ๋ฉ
- ์๋ฐ
- ์๋ฐ๋ฌธ์
- API
- JDBC
- spring
- ๋๋์ธ์ฌ๊ฐ๋ฐ์
- Error
- ๋ฐ๋ณต๋ฌธ
- pyqt
- python
- ๋ฐฐ์ด
- nodejs
- ๊ฐ์ฒด์งํฅ
- crud
- jsp
- Mac
- servlet
- Homebrew
- ์ดํด๋ฆฝ์ค
- ddit
- ๋จ์ถํค
- Today
- Total
๋ชฉ๋กpython (17)
romworld

์ ์ ๋ง๋ค์๋ ์ค๋ชฉ๊ฒ์ ํ์ผ์ static ํจํค์ง์ ๋ณต์ฌํ๋ค. from fastapi import FastAPI,Form,Request import uvicorn from starlette.responses import HTMLResponse, RedirectResponse from starlette.staticfiles import StaticFiles from starlette.templating import Jinja2Templates import pymssql app = FastAPI() app.mount("/static", StaticFiles(directory="static"), name="static") templates = Jinja2Templates(directory="templates"..

์ค๋ชฉ 10x10 1. ์ค๋ชฉ ๋ฐฑ๋ ๋ฒํผ ์ด๋ฒคํธ 2. ์ค๋ชฉํ์ ๋๋ ์ ๋ ํ๋ ๋ฐฑ๋์ด ์์๋๋ก ๋์ค๊ฒ ์ด๋ฒคํธ 1) flag -> true/false๋ก ์ด๋ฒคํธ๋ฅผ ์ค ์ ์๋ค. ๋๋๋ง ํจ์ ์ด์ฐจ์ ๋ฐฐ์ด์ ์ค๋ชฉ ์์น๋ฅผ ์ง์ ํ๊ณ ๋ฒํผ์ ํด๋ฆญํ์ ๋ ์ด๋ฒคํธ ๋ฐ์ 1) img์ alt ์์ฑ, flag๋ฅผ ์ฌ์ฉํ์ฌ ๋ฐฐ์ด์ ์์น์ ๋ฐฑ๋๊ณผ ํ๋์ ์ ์ฅํ๊ณ ํด๋ฆญํ์ ๋ ํ๋๊ณผ ๋ฐฑ๋์ด ์ถ๋ ฅ๋ ์ ์๋ค. ํ๋๊ณผ ๋ฐฑ๋์ ์์น ์ค์ setTimeout setTimeout(func|code, [delay], [arg1], [arg2], ...) alert์ฐฝ ๋์ธ ๋ ๋๋ ์ด๋ฅผ ์ค๋ค. ์ต์ข ํ๋๊ณผ ๋ฐฑ๋์ด ๋ฒ๊ฐ์๊ฐ๋ฉด์ ๋์ค๊ฒ UL UP UR LE RE DL DW DR ๋ฐฉํฅ์ผ๋ก ์,์๋,์์,๋๊ฐ์ ๋์ด 5๊ฐ ์์ด๋ฉด ์ด๊น ์๋์ฐฝ์ด ๋์ด 5๊ฐ๊ฐ..

Apache - TomCat APM : Apache, PHP, Mysql ASP/JSP/PHP ASP : ๋น์ฃผ์ผ ๋ฒ ์ด์ง, c#์ ๊ฐ์ง๊ณ jsp์ฒ๋ผ ์์ ์ ์ฌ์ฉํ๋ ์ธ์ด Apache์ JSP๋ฅผ ๊ฒฐํฉํ ๊ฒ์ apache-tomcat ์๋ฐ์คํฌ๋ฆฝํธ ๊ฐ๋จ ์ค๋ช Double ๊ตฌ๊ตฌ๋จ ์ถ๋ ฅ ์ถ๋ ฅ๋จ์: ํ์ง ๋: ์ปด: ๊ฒฐ๊ณผ: ๋ก๋๊ฒ์ 1. ์ฒซ๋ฒ์งธ ๋ฐฉ๋ฒ. __ __ __ __ __ __ 2. ๋๋ฒ์งธ ๋ฐฉ๋ฒ __ __ __ __ __ __ ๊ฐ์๋ฐ์๋ณด 1. ์ฒซ๋ฒ์งธ ๋ฐฉ๋ฒ ๋: ์ปด: ๊ฒฐ๊ณผ: 2. ๋๋ฒ์งธ ๋ฐฉ๋ฒ ๋: ์ปด: ๊ฒฐ๊ณผ: ๋ณ์ฐ๊ธฐ ์ฒซ๋ฒ์งธ๋ณ์ ๋๋ณ์: ๊ณ์ฐ๊ธฐ ์ถ๋ ฅ ๊ณ์ฐ๊ธฐ + ๋ฐฐ์ํฉ ๊ตฌํ๊ธฐ ์์ ๊น์ง ์ผ๊ตฌ๊ฒ์ ์คํธ๋ผ์ดํฌ:

emp ํ ์ด๋ธ crud ํ๋ฉด ๊ตฌ์กฐ emp_list : (๋ฆฌ์คํธ) emp_detail : (์์ธ๋ณด๊ธฐ) emp_mod (์์ ํผ) emp_mod_act (์์ ) emp_del_act (์ญ์ ) emp_ins act : act๊ฐ ๋ถ์ ๊ฑด ํ๋ฉด์ ๋์์ง์ง ์์ EMPLIST - ์ ์ฒด ๋ฆฌ์คํธ ์ถ๋ ฅ from fastapi import FastAPI,Form,Request import uvicorn from starlette.responses import HTMLResponse from starlette.staticfiles import StaticFiles from starlette.templating import Jinja2Templates import pymssql from day10.daoemp import Da..

EMP ํ ์ด๋ธ์ ์ด์ฉํด (MS SQL ์ด์ฉ) DAO ๋ง๋ค๊ธฐ import pymssql conn = pymssql.connect(server="", user="sa", password="", database="python", charset='utf8') cursor = conn.cursor() cursor.execute('SELECT * FROM emp;') list = cursor.fetchall() print(list) cursor.close() conn.close() SELECT (์ ์ฒด์ถ๋ ฅ) import pymssql class DaoEmp: def __init__(self): self.conn = pymssql.connect(server="์ด๋ฆ", user="sa", password="๋น๋ฐ๋ฒํธ", ..

Python์ ํ๋ ์์ํฌ - Flask - Django - FastAPI -> ์๋๊ฐ ๋น ๋ฅด๋ค, ์ง๊ด์ ์ 1.FastAPI ์ค์น cmd (๊ด๋ฆฌ์ ๊ถํ)์์ ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ค pip install fastapi 2.Uvicorn ์ค์น pip install uvicorn 3. main.py ๋ง๋ค๊ธฐ from fastapi import FastAPI app = FastAPI() @app.get("/") async def root(): return {"message": "Hello World"} @app.get("/hello/{name}") async def say_hello(name: str): return {"message": f"Hello {name}"} 4. ์๋ฒ ์คํ (cmd์์ ์คํ์ํค๋ ๋ฐฉ๋ฒ) uvic..

https://ddolcat.tistory.com/707#google_vignette DB Browser for SQLite ๋ค์ด๋ก๋ ์ค์น ๋ฐ ๊ธฐ๋ณธ ์ฌ์ฉ๋ฒ SQLite ๋ฐ์ดํฐ๋ฒ ์ด์ค์ ์ ๊ทผ ํ๊ธฐ ์ํด GUI ํ๋ก๊ทธ๋จ ์ค DB Broswer for SQLite ํ๋ก๊ทธ๋จ์ ์ค์น ๋ฐฉ๋ฒ ๋ฐ ์ฌ์ฉ๋ฐฉ๋ฒ์ ๋ํด ์์๋ด ๋๋ค. SQLite ํด ์ค์ ํ๋๋ก CRUD ์์ , ์ธ๋ฑ์ค ์์ฑ ๋ฑ ๋ง์ ์์ ์ ํธํ๊ฒ ddolcat.tistory.com OS ๋ฒ์ ์ ๋ง๊ฒ ์ค์น install ์ํค๋ฉด SQL ์คํ์์ ์ฟผ๋ฆฌ๋ฅผ ์์ฑํ ์ ์๋ค. ํ ์ด๋ธ์ ์์ฑํ๊ณ ์ ์ฅํ๋ค. ์ ์ฅ๋ dbํ์ผ์ python ์ดํด๋ฆฝ์ค ํจํค์ง์ ๋๋ ( ์์ ์ฌ์ง์ ๊ฐ์ ํ ์ด๋ธ์ด ์๋) sqllite3์ python ์ฐ๊ฒฐ ํ select import sqlite3 ..

( cmd์์ ipconfig๋ฅผ ์น๋ฉด ip์ฃผ์๋ฅผ ํฌํจํ ์ฃผ์๋ฅผ ์ ์ ์์ ) ORM์ rdb์ java๋ฅผ ์ฐ๊ฒฐํด์ฃผ๋ ํด mysql, ms sql, maria db db2 postage db access sqlite - ์๋๋ก์ด๋์ ์ฃผ๋ก ๋ค์ด๊ฐ.. ------------------------------------------------------------------------------ [window] Python๊ณผ ms sql ์ฐ๋ pymssql ๋๋ผ์ด๋ฒ ์ค์น๋ cmd์ฐฝ์์ pip install pymssql ๋ช ๋ น์ด๋ก install ํด์ฃผ๋ ๊ฒ ๊ฐ๋จํ๋ค. ์ ์ผ ์ต์ ๋ฒ์ ์ผ๋ก ์ธ์คํจ ๋๋ค. # pymssql ํจํค์ง import import pymssql # MSSQL ์ ์ conn = pymssql.con..