๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ


์ „์ฒด ๊ธ€

(217)
[Go] ์ž…๋ฌธ ๋‹ค์šด๋กœ๋“œ https://go.dev/dl/ Downloads - The Go Programming Language Downloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about Go releases go.dev package main func main() { println("Test") } http://golang.site/go/art..
[Python] pywebview - webview ๋งŒ๋“ค๊ธฐ ์„ค์น˜ pip install pywebview Hello world: import webview webview.create_window('Hello world', 'https://pywebview.flowrl.com/') webview.start() HTML ๋ถˆ๋Ÿฌ์˜ค๊ธฐ url, html ๋‘˜ ๋‹ค ์žˆ์„ ๊ฒฝ์šฐ html ์ด ์šฐ์„  ์ˆœ์œ„๋ฅผ ๊ฐ€์ง„๋‹ค. import webview webview.create_window('Woah dude!', html='Woah dude!') webview.start() HTML ํŒŒ์ผ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ import webview webview.create_window('Woah dude!', 'index.html') webview.start() HTTP server pywebview๋Š” WSGI ํ˜ธํ™˜..
[Python] pip ์„ค์น˜, ์—…๊ทธ๋ ˆ์ด๋“œ (Windows) pip ๋ฒ„์ „ ํ™•์ธ pip --version pip -V pip ์—…๊ทธ๋ ˆ์ด๋“œ python -m pip install --upgrade pip python -m ์—์„œ -m ์˜ ๋œป -m mod : run library module as a script (terminates option list) ๊ฒฝ๋กœ ์ถœ๋ ฅ python -m site Site Packages๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋Š” ๊ฒฝ๋กœ๋ฅผ ์ถœ๋ ฅํ•˜๋Š” ๋ฐฉ๋ฒ• python -m site --user-site pip๋กœ ์„ค์น˜ ๋ฐฉ๋ฒ• pip install flask # ๋ฒ„์ „ ์ง€์ • pip install flask==1.1.1 # ์—…๊ทธ๋ ˆ์ด๋“œ pip install -U flask pip install --upgrade flask pip install --force-reinstall flas..
[Python] pyinstaller / exe ํŒŒ์ผ ์ƒ์„ฑ exe ํŒŒ์ผ ํ•˜๋‚˜๋กœ ์ƒ์„ฑ pyinstaller test.py --onefile https://flytrap.tistory.com/m/23 pyinstaller ์šฉ๋Ÿ‰ ์ค„์ด๋Š” ๋ฐฉ๋ฒ• (230MB->36MB) ํŒŒ์ด์ฌ์„ ์ด์šฉํ•˜์—ฌ ํ† ํ”Œ ์Šคํ”ผํ‚น ์—ฐ์Šต ํ”„๋กœ๊ทธ๋žจ์„ ๋งŒ๋“ค์—ˆ๋Š”๋ฐ, ๋ณ„ ๊ธฐ๋Šฅ์ด ์—†๋Š”๋ฐ ์šฉ๋Ÿ‰์ด 230MB๋‚˜ ๋˜์—ˆ๋‹ค. ํ™•์ธํ•ด๋ณธ ๊ฒฐ๊ณผ ์•„๋‚˜์ฝ˜๋‹ค๋ฅผ ์ด์šฉํ•˜์—ฌ pyinstaller๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์ƒ๊ธฐ๋Š” ๋ฌธ์ œ์˜€๊ณ , ์ˆœ์ • ํŒŒ์ด์ฌ flytrap.tistory.com
[Python] PySide6 import sys from PySide6.QtWidgets import QApplication, QWidget app = QApplication(sys.argv) window = QWidget() window.show() app.exec_() ์ฐธ๊ณ  https://martinii.fun/147 [1/?] ๊ฐœ๋ฐœํ™˜๊ฒฝ๊ณผ PySide6 ๋ชจ๋“ˆ ์„ค์น˜ ๋ณธ๋ฌธ์˜ GIF(์›€์งค)๋“ค์€ ํด๋ฆญํ•˜๊ธฐ ์ „์—๋Š” ์ดˆ๋ฐ˜1์ดˆ ์ •๋„๋งŒ ๋ฐ˜๋ณตํ•ด์„œ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค. ๋ณ„๋„๋กœ ํด๋ฆญ์„ ํ•ด์ฃผ์…”์•ผ๋งŒ ๋๊นŒ์ง€ ์žฌ์ƒ์ด ๋˜๋Š” ์  ์œ ์˜ํ•˜์—ฌ ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ๊ฐœ๋ฐœํ™˜๊ฒฝ๊ณผ ๋ชจ๋“ˆ ์„ค์น˜ ๊ฐœ๋ฐœํ™˜๊ฒฝ ์„ค์น˜ martinii.fun
[Python] ๊ฐ€์ƒํ™˜๊ฒฝ venv, pipenv ๋ช…๋ น์–ด ์ •๋ฆฌ venv python -m venv ๊ฐ€์ƒํ™˜๊ฒฝ์ด๋ฆ„ # ํ™˜๊ฒฝ๋ณ€์ˆ˜ path ์šฐ์„  ์ˆœ์œ„๊ฐ€ ๋†’์€ python ๋ฒ„์ „์œผ๋กœ ์ƒ์„ฑ python -m venv venv # path์™€ ์ƒ๊ด€์—†์ด ์„ค์น˜๋˜์–ด ์žˆ๋Š” ํŒŒ์ด์ฌ ์ค‘ ๋ฒ„์ „ ์ง€์ •ํ•˜์—ฌ ์ƒ์„ฑ py -3.8 -m venv venv # ํŒŒ์ด์ฌ์ด ์„ค์น˜๋œ ๊ฒฝ๋กœ ์ด์šฉํ•ด์„œ ์ƒ์„ฑ D:\Programs\Python\Python310\python -m venv venv ์„ค์น˜๋˜์–ด์žˆ๋Š” ํŒŒ์ด์ฌ ๋ณด๊ธฐ : py -0 ๊ฐ€์ƒํ™˜๊ฒฝ ํ™œ์„ฑํ™” venv\Scripts\activate ๋น„ํ™œ์„ฑํ™” deactivate ํŒจํ‚ค์ง€ ์ด๋ฆ„๊ณผ ๋ฒ„์ „ ์ถœ๋ ฅ pip list pip ์ผ๊ด„ ์„ค์น˜ pip install -r requirements.txt # ์‚ญ์ œ pip uninstall -r requirements.txt ํŒจํ‚ค์ง€ ๋ชฉ๋ก๊ณผ ๋ฒ„์ „ ..
[Node.js] Puppeteer Puppeteer sets an initial page size to 800ร—600px, which defines the screenshot size. The page size can be customized with Page.setViewport(). const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch(); const page = await browser.newPage(); await page.goto('https://news.ycombinator.com', { waitUntil: 'networkidle2', }); await page.pdf({path: 'hn.pdf', format: ..
[Python] Pillow ์ด๋ฏธ์ง€ ์‚ฌ์ด์ฆˆ ํ™•์ธ https://note.nkmk.me/en/python-opencv-pillow-image-size/ Get image size (width, height) with Python, OpenCV, Pillow (PIL) | note.nkmk.me This article describes how to get the image size (width, height) in Python with OpenCV and Pillow (PIL).The image size can be obtained as a tuple with the attribute shape of ndarray in OpenCV and the attribute size of PIL.Image in Pillow (PIL). Note that t note..