V2EX nlimpid
nlimpid's repos on GitHub
172 人关注
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
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 programmingnot promptinglanguage 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
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 最近回复了
176 天前
回复了 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-03-16 17:24:45 +08:00
回复了 psw84 创建的主题 推广 NUC8i5 黑果套餐返场! 抽一人送西数黑盘.
2T 硬盘+硬改,性价比很高了
新年快乐
更接近一个给自己看的 twitter/weibo,挺好的
2020-11-29 22:29:45 +08:00
回复了 psw84 创建的主题 推广 NUC 黑果套餐 继续开车 有福利!
已经有一套了,除了凑数更希望开车一个便携显示器最终呈现一个完整的体验
网站维护中

Down for Maintenance (Err 3)
2019-07-30 16:16:17 +08:00
回复了 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     1286 人在线   最高记录 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 26ms UTC 17:14 PVG 01:14 LAX 09:14 JFK 12:14
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86