nlimpid's repos on GitHub
173 人关注
rime-hepy
自用小鹤双拼rime配置
Python · 1 人关注
pythonReadability
readability for python
Python · 1 人关注
quoty-flow
Go · 1 人关注
rss
rss source for some website
Lua · 0 人关注
.hammerspoon
My hammerspoon config
0 人关注
across
Across the Great Wall we can reach every corner in the world
0 人关注
ahk-mackeys
Use macOS key bindings on Windows.
Dockerfile · 0 人关注
alist-render
Deploy alist to render
0 人关注
arrow-cache
Go · 0 人关注
arrow-converter
A tool to work with Arrow in Go.
AutoHotkey · 0 人关注
autohotkey-macOS-shortcut
using macOS's shortcut on windows by autohotkey
Go · 0 人关注
beego
beego is an open-source, high-performance web framework for the Go programming language.
HTML · 0 人关注
blog
0 人关注
bytebase
The GitHub/GitLab for database DevOps. World's most advanced database DevOps and CI/CD for Developer, DBA and Platform Engineering teams.
0 人关注
ch-http-client
A simple clickhouse http client in rus
Rust · 0 人关注
ci-bench
0 人关注
clabot-config
GitHub CLA Bot configuration.
0 人关注
claude-code-proxy
Claude Code to OpenAI API Proxy
0 人关注
clickhouse-rs
Official pure Rust typed client for ClickHouse DB
Go · 0 人关注
CLIProxyAPI
Wrap Gemini CLI, Antigravity, ChatGPT Codex, Claude Code, Qwen Code, iFlow as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 2.5 Pro, GPT 5, Claude, Qwen model through API
C++ · 0 人关注
cracking-the-coding-interview
Solutions for the book: Cracking the coding interview V4. Written in C++.
0 人关注
crawler-python
a simple crawler framework
Swift · 0 人关注
CS193-2021
0 人关注
curl-to-go
Convert curl commands to Go code in your browser
Rust · 0 人关注
datafusion
Apache DataFusion SQL Query Engine
Go · 0 人关注
delay
delay message queue
Go · 0 人关注
demo
TypeScript · 0 人关注
demo_ts
Rust · 0 人关注
dev_tools
online-tools for developer
Python · 0 人关注
dotfiles
dotfiles
0 人关注
dspy
DSPy: The framework for programming—not prompting—language models
Vim script · 0 人关注
etcetera
Go · 0 人关注
feeds
golang rss/atom generator library
0 人关注
feishu-exporter
Export Feishu docs with ease
JavaScript · 0 人关注
fullstackopen
0 人关注
gear-rs
Go · 0 人关注
gendry
a golang library for sql builder
0 人关注
githubPR
a pr merge illustration to github
Go · 0 人关注
go-pinyin
汉字转拼音,多音字、段落支持
Go · 0 人关注
go-xlsx
Simple xlsx marshal & unmarshal library
0 人关注
gocsv
The GoCSV package aims to provide easy CSV serialization and deserialization to the golang programming language
0 人关注
gojieba
"结巴"中文分词的Golang版本
Go · 0 人关注
gosqlt
A type-safe, generic library for Go that simplifies SQL operation
0 人关注
grpc-go
The Go language implementation of gRPC. HTTP/2 based RPC
0 人关注
helper
0 人关注
iBooks
计算机图书,java,mysql,架构类,web
0 人关注
iterm2-zmodem
在 Mac 下,实现与服务器进行便捷的文件上传和下载操作
Shell · 0 人关注
k8s-backup
Kubernetes Backup solution by exporting all k8s-components into YAML files and Uploading them to S3 Bucket
C++ · 0 人关注
klee
KLEE Symbolic Virtual Machine
0 人关注
langgraph
Build resilient language agents as graphs.
Go · 0 人关注
lark
An easy-to-use SDK for Feishu and Lark Open Platform (Messaging API only)
Rust · 0 人关注
lark-oapi
Lark OpenAPI
Python · 0 人关注
mcp-weather
0 人关注
MSI-B360-Catalina-EFI
Hackintosh EFI FILE
C · 0 人关注
NanoPi-R2S
使用 Github Actions 在线编译内置 OpenClash 的 NanoPi-R2S 固件
Go · 0 人关注
NeteaseCloudMusicFlac
根据网易云音乐的歌单, 下载flac无损音乐到本地.。
TypeScript · 0 人关注
next-app-playground
TypeScript · 0 人关注
next-radix
template for next
0 人关注
nextjs13-with-antd-tailwindcss
Next.js13 app dir with Antd 5 & tailwindcss
0 人关注
nextjs14-shadcnui-biome-lefthook-boilerplate
This is a boilerplate project setup for Next.js 14, Shadcn UI, Biome, and Lefthook. It includes a basic configuration to get you started with building a modern web application.
Go · 0 人关注
obfssh
ssh client/server by golang
Rust · 0 人关注
OneApp
All in one App for Hackernews, Reddit and more
SCSS · 0 人关注
openapi-website
LongPort OpenAPI website
0 人关注
opendal
Apache OpenDAL: access data freely.
Go · 0 人关注
orm-benchmark
All golang orm benchmark
0 人关注
parquet-format
Apache Parquet
Shell · 0 人关注
pg-import-benchmark
Benchmark PostgreSQL table creation and data ingestion performance across different configurations
Go · 0 人关注
phonegeocode
Phone number geocoding library for Go (#golang)
HTML · 0 人关注
public
none
Go · 0 人关注
quki
quki is question's wikipedia
Rust · 0 人关注
quoty-atom
the atom element of quoty
Rust · 0 人关注
quoty-insight
an demo usage of longbridge openapi
0 人关注
replit-trojan
在 Replit 免费服务上部署 Trojan Websocket 协议
0 人关注
rill
Rill is a tool for effortlessly transforming data sets into powerful, opinionated dashboards using SQL. BI-as-code.
0 人关注
rust_template
Fast template for developing a new Rust project
Rust · 0 人关注
sccache
Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Go · 0 人关注
sensitive
敏感词查找,验证,过滤和替换 🤓 FindAll, Validate, Filter and Replace words.
JavaScript · 0 人关注
shares
HTML · 0 人关注
sike-css0to1-profile
JavaScript · 0 人关注
SimpleChromeExtension
Just practice for chrome extension
0 人关注
singlestoredb-go-arrow-driver
SingleStoreDB driver for reading data in arrow format
0 人关注
The-Go-Programming-Language-Exercise
Exercise for The book The Go Programming Language
CSS · 0 人关注
Tieba-Clean
0 人关注
trade-tool
a tiny tool for trading
0 人关注
v2ex-css-editordark
EditorDark, a V2EX custom CSS theme.
0 人关注
web_book
我的web书单
0 人关注
welcome2git
Rust · 0 人关注
xcgit
extrem unblocking git
Go · 0 人关注
xlsx
Google Go (golang) library for reading and writing XLSX files. You should probably also checkout: https://github.com/360EntSecGroup-Skylar/excelize
Python · 0 人关注
youtube-dl
Command-line program to download videos from YouTube.com and other video sites
nlimpid

nlimpid

V2EX 第 66356 号会员,加入于 2014-06-27 13:24:35 +08:00
根据 nlimpid 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
nlimpid 最近回复了
2025 年 6 月 24 日
回复了 yujianwjj 创建的主题 Python go 转 Python 的心智负担增加
我对 Python 也不是很熟悉,不过我还是认为 Python 的错误处理更好些。

1. Go 的这种显式的把 Err 当成返回值的设计选择会让代码变的啰嗦一些。对于题主的例子来说,Python 生态可以根据不同的场景选择每一次处理都抛异常或者把异常合并在一起,让 Happy Path 更加清楚。



```
try:
result = foo()
do_something(result) // 这里也可以每次都 try ,和 Go 就一样了。
except FooError as e:
```

2. 我认为题主的这句话「很多时候,我跳转到函数的源码里面,也看不出会返回什么异常」是因为对语言熟悉程度导致的。我常写 Go 就知道常见的 io.EOF, os.ErrNotExist 。但从实际文档来看可能差异不大,以 JSON 为例,Python Doc 把 Exception 都放一起来相对来说还好找些。https://docs.python.org/3/library/json.html#exceptions https://pkg.go.dev/encoding/json#MarshalerError
2021 年 3 月 16 日
回复了 psw84 创建的主题 推广 NUC8i5 黑果套餐返场! 抽一人送西数黑盘.
2T 硬盘+硬改,性价比很高了
新年快乐
更接近一个给自己看的 twitter/weibo,挺好的
2020 年 11 月 29 日
回复了 psw84 创建的主题 推广 NUC 黑果套餐 继续开车 有福利!
已经有一套了,除了凑数更希望开车一个便携显示器最终呈现一个完整的体验
网站维护中

Down for Maintenance (Err 3)
2019 年 7 月 30 日
回复了 kisshere 创建的主题 程序员 用户 ip 字段,在 MySQL 中到底该以何种类型存?
如果只有 ipv4,用 int 就够了。
如果同时有 ipv4 和 ipv6,可以使用 varbinary(16),mysql 有内置的方法处理 ip 类型,见 https://dev.mysql.com/doc/refman/5.6/en/miscellaneous-functions.html
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1911 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 12:59 · PVG 20:59 · LAX 04:59 · JFK 07:59
♥ Do have faith in what you're doing.