Less than 1 minute
- MySQL25
- python19
- interview17
- java11
- ECS10
- Linux10
- nowcoder9
- git6
- go6
- spring6
- Computer Base6
- llm5
- postgresql5
- wsl5
- vlm4
- Intro4
- 源码分析4
- computer tower4
- Logging Framework3
- c3
- Environment setup3
- redis2
- 架构2
- docker2
- c++2
- milvus2
- wechat2
- MySQL查询深入优化2
- architect1
- Tools1
- icon1
- markdown1
- docker compose1
- Nginx1
- k8s1
- ssh1
- springboot1
- Design Patterns1
- Term1
- CLion1
- windows1
- chocolatey1
- Blog1
- vue1
- trouble shooting1
Less than 1 minute
Less than 1 minute
Less than 1 minute
微积分
Less than 1 minute
线性代数
Less than 1 minute
统计学
Less than 1 minute
Less than 1 minute
简介
An extremely fast Python package and project manager, written in Rust.
下载
# 有 curl
curl -LsSf https://astral.sh/uv/install.sh | sh
# 有 wget
wget -qO- https://astral.sh/uv/install.sh | sh
About 1 min
import time
def retry(retry_times: int = 3):
def decorator(func):
def wrapper(*args, **kwargs):
for i in range(retry_times):
try:
return func(*args, **kwargs)
except Exception as e:
print(f"{str(func).split(' ')[1]} retry {i + 1} times cause exception {e}")
if i == retry_times - 1:
raise e
return wrapper
return decorator
def timer():
def decorator(func):
def wrapper(*args, **kwargs):
start = time.perf_counter()
try:
return func(*args, **kwargs)
except Exception as e:
raise e
finally:
end = time.perf_counter()
print(f"{func.__name__} cost {end - start} seconds")
return wrapper
return decorator
Less than 1 minute
