V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  lululau  ›  全部回复第 15 页 / 共 114 页
回复总数  2280
1 ... 11  12  13  14  15  16  17  18  19  20 ... 114  
2024 年 5 月 14 日
回复了 liv22 创建的主题 长沙 120w 是买长沙还是广州?
120W ?买个充电头还要考虑在什么地方买?这么考究吗😅
2024 年 5 月 7 日
回复了 GooogIe 创建的主题 Python 求助大黑:关于 macOS 的 Python 版本混乱的若干问题
把系统管理(包括 Homebrew 安装)的 Python 挂载到 pyenv 管理:
```
if [ -z "$HOMEBREW_PREFIX" ]; then
if [ -e "/opt/homebrew/bin/brew" ]; then
HOMEBREW_PREFIX="/opt/homebrew"
else
HOMEBREW_PREFIX="/usr/local"
fi
fi

mkdir -p ~/.pyenv/versions

if [ -e "$HOMEBREW_PREFIX/Cellar/python@2" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/python@2/2*(On[1]) ~/.pyenv/versions/
ln -nfs $HOMEBREW_PREFIX/Cellar/python@2/2*(On[1]) ~/.pyenv/versions/2
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.12
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.11
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.10
fi


if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.9
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.8
fi

cd ~/.pyenv/versions/3/bin
cp -Rf python3.12 python3
cp -Rf python3 python
cp -Rf pip3.12 pip3
cp -Rf pip3 pip
cp -Rf pydoc3.12 pydoc3
cp -Rf python3.12-config python3-config
cp -Rf 2to3-3.12 2to3
cp -Rf idle3.12 idle3
ln -nfs wheel3.12 wheel3

if [ -e ~/.pyenv/versions/3.11 ]; then
cd ~/.pyenv/versions/3.11/bin
cp -Rf python3.11 python3
cp -Rf python3 python
cp -Rf pip3.11 pip3
cp -Rf pip3 pip
cp -Rf pydoc3.11 pydoc3
cp -Rf python3.11-config python3-config
cp -Rf 2to3-3.11 2to3
cp -Rf idle3.11 idle3
ln -nfs wheel3.11 wheel3
fi

if [ -e ~/.pyenv/versions/3.10 ]; then
cd ~/.pyenv/versions/3.10/bin
cp -Rf python3.10 python3
cp -Rf python3 python
cp -Rf pip3.10 pip3
cp -Rf pip3 pip
fi

if [ -e ~/.pyenv/versions/3.9 ]; then
cd ~/.pyenv/versions/3.9/bin
cp -Rf python3.9 python3
cp -Rf python3.9 python
cp -Rf pip3.9 pip3
cp -Rf pip3.9 pip
fi

if [ -e ~/.pyenv/versions/3.8 ]; then
cd ~/.pyenv/versions/3.8/bin
cp -Rf python3.8 python3
cp -Rf python3.8 python
cp -Rf pip3.8 pip3
cp -Rf pip3.8 pip
fi
```
2024 年 4 月 19 日
回复了 fusi 创建的主题 Visual Studio Code 想找一种 vscode 扩展
我也是这么用的,不过是在 Emacs 里:

```
(let ((result '()))
(dolist (elem (append lx/dirs lx/demo-files lx/config-files lx/org-files lx/cheatsheets lx/server-files) result)
(let ((kbd (nth 0 elem))
(func-name (nth 1 elem))
(dir (nth 2 elem)))
(eval `(lx/make-open-file-function ,func-name ,dir))
(add-to-list 'result kbd t)
(add-to-list 'result (intern (format "lx/open-file-%s" func-name)) t)))
(apply 'spacemacs/set-leader-keys result))
```

我觉得你可以尝试自己实现一下,顺便也就学会用 vscode 了
2024 年 4 月 17 日
回复了 lucasj 创建的主题 程序员 推荐几个你一直在用的开源项目工具
2024 年 4 月 16 日
回复了 wato 创建的主题 问与答 面对文明冲突,算不算一种精神疾病?
东北素质确实稍微低点,但是全国也都不怎么高,这是历史上多少次民族融合的结果
docker / k8s 不都是用来解决部署问题的吗,为什么要在开发机笔记本弄这些。。。
冷知识:macOS(包括 Mac OS X) 只有 Mac OS X 10.7 Lion 是类 UNIX 系统,因为这个版本没有获得 Open Group 的 UNIX03 认证 😂
2024 年 3 月 29 日
回复了 jeffson 创建的主题 问与答 大家多长时间给自己电脑做个保养呢?
每天做啊

brew upgrade ; brew post-update ; brew cleanup ; brew list --casks | xargs -I {} brew upgrade --cask {}; brew cleanup;
2024 年 3 月 21 日
回复了 superedlimited 创建的主题 Apple 事实证明, MacBook Air, m3 8+256 编程完全够用的。
JB 家的 IDE 不是支持同时开多个 projects 吗,为什么需要开两个 IDEA ?
2024 年 2 月 23 日
回复了 rrubick 创建的主题 Apple 下次电脑硬盘一定要买 1t 的了
做 iOS/macOS 开发的硬盘起码要 2TB 起步
未完成九年义务教育,不犯法吗
问这种问题,不把公司名字分享一下,大家好避避坑,活该你赔
一本英文版的 Python 书,一本英文版机器学习入门书,告诉他要学编程,英语和数学一定要学好
2024 年 1 月 25 日
回复了 dc2002007 创建的主题 总是做梦找不到车
梦到在睡觉,想睁开眼醒过来,怎么也睁不开眼
2024 年 1 月 24 日
回复了 Tumblr 创建的主题 随想 贵的东西,真的就是智商税吗?
一般不是越多、越贵,税才越高吗,那「智商税」到底是说智商高还是智商低啊?我感觉发明以及念叨「智商税」这个词的人,真的是智商余额不足
2024 年 1 月 18 日
回复了 brader 创建的主题 分享发现 你在字典和百科看到的文字读音,不一定是正确的
就着文盲语委,现在中文读音还存在对错问题?说不定明天语委就会把「吃饭」的发音改成「 la shi 」 了
2024 年 1 月 15 日
回复了 phpfpm 创建的主题 CentOS 为什么 CENTOS crontab 的 PATH 不包含/usr/sbin?
crontab 标准写法:

/bin/bash -l -c 'your commands'
2024 年 1 月 13 日
回复了 bthulu 创建的主题 Vim 各位用 vim 键位的, 是怎么解决 esc 频繁按键的问题的呢?
ctrl-c, cmd-q
2024 年 1 月 12 日
回复了 lbunderway 创建的主题 程序员 后端接口规范问题,只提供一个接口如何?
这叫一个接口? example.com:443/api1, example.com:443/api2 用的是同一台机器的同一个 TCP 端口,是不是也可以叫一个接口?
1 ... 11  12  13  14  15  16  17  18  19  20 ... 114  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2730 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 52ms · UTC 11:58 · PVG 19:58 · LAX 04:58 · JFK 07:58
♥ Do have faith in what you're doing.