name == main
if name == βmainβ: To better understand why and how this matters, we need to take a step back to understand how Python initializes scripts and how this inter...
if name == βmainβ: To better understand why and how this matters, we need to take a step back to understand how Python initializes scripts and how this inter...
Python GMP
https://inmoonlight.github.io/2021/02/21/PyTorch-IterableDataset/
```py import time data = [] start = time.time() from concurrent.futures import ThreadPoolExecutor import concurrent.futures
4-1. μΈλλ°κ° μμ νλ λΆμ κ²½μ° (ex: _variable) μ΄ κ²½μ°λ λͺ¨λ λ΄μμλ§ ν΄λΉ λ³μ/ν¨μλ₯Ό μ¬μ©νκ² λ€λ μλ―Έμ λλ€.(private) νΉν νμ μ ν λ λ€λ₯Έ νμμκ² βμ΄ λ³μ/ν¨μλ μ΄ λͺ¨λ λ΄λΆμμλ§ μ¬μ©ν κ±°λ€βλΌκ³ λͺ μμ μΌλ‘ ννΈλ₯Ό μ€ μ μμ΅λλ€.
urllib.parse.unquote(string, encoding=βutf-8β, errors=βreplaceβ) Replace %xx escapes with their single-character equivalent. The optional encoding and err...
Coroutines and Tasks
Regex μμ£Ό μ¬μ©νλ λ¬Έμ ν΄λμ€
```py import os def changeName(path, cName): i = 1 for filename in os.listdir(path): print(path+filename, β=>β, path+str(cName)+str(i)+β....