V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  simple2025  ›  全部回复第 128 页 / 共 162 页
回复总数  3225
1 ... 124  125  126  127  128  129  130  131  132  133 ... 162  
2019 年 3 月 25 日
回复了 formulahendry 创建的主题 分享发现 代码编辑器横评:为什么 VS Code 能拔得头筹
vscode 才 4 年
2019 年 3 月 25 日
回复了 mynice 创建的主题 情感问题 你们结婚年龄是多少?我今年 31,未婚!
2019 年 3 月 24 日
回复了 agdhole 创建的主题 浏览器 试用了下微软 Chromium 版 Edge
我选择 ff,毕竟可以 linux
面试的时候你就有的哭了
进不了,告辞
直接按照 http 的 status 和 message
2019 年 3 月 18 日
回复了 inu1255 创建的主题 程序员 撸了个 vscode 管理 snippet 的插件
能指点我下 vscode 插件开发吗?
2019 年 3 月 18 日
回复了 liuzhaowei55 创建的主题 Go 编程语言 所以现在 Go 到底应该用什么包管理器?
@silenceshell 现在不是 2019 年吗
2019 年 3 月 16 日
回复了 lidfather 创建的主题 程序员 面试时候问你项目中遇到什么难点应该怎么答?
我也没有什么难点呀
2019 年 3 月 13 日
回复了 hanssx 创建的主题 Python 使用 pycharm 对 Python 项目调试遇到非常诡异的现象
感觉是 log.py 文件的问题
```
def emit(self, record):
try:
message = stdout_encode(self.format(record))
stream = self.stream

if not self.is_tty:
if message and message[0] == "\r":
message = message[1:]
stream.write(message)
else:
self.output_colorized(message)
stream.write(getattr(self, 'terminator', '\n'))

self.flush()
except (KeyboardInterrupt, SystemExit):
raise
except IOError:
pass
except Exception as e:
self.handleError(record)
```
这个改成
```
def emit(self, record):
try:
message = stdout_encode(self.format(record))
stream = self.stream

if not self.is_tty:
if message and message[0] == "\r":
message = message[1:]
stream.write(message.decode(sys.stdout.encoding))
else:
self.output_colorized(message)
stream.write(getattr(self, 'terminator', '\n'))

self.flush()
except (KeyboardInterrupt, SystemExit):
raise
except IOError:
pass
except Exception as e:
self.handleError(record)
```
感觉是 pycharm log 走的
```
if not self.is_tty:
if message and message[0] == "\r":
message = message[1:]
stream.write(message.decode(sys.stdout.encoding))
```
而 terminator 走的是
```
else:
self.output_colorized(message)
```
2019 年 3 月 11 日
回复了 itskingname 创建的主题 分享创造 三年写了两本书,这是我的时间管理实践
我是超级大咸鱼,难怪找不到工作,没有自制力呀
2019 年 3 月 11 日
回复了 cs8814336 创建的主题 Python nginx + django + uwsgi + python2.7 如何排查内存泄露.
这个时间就有点羡慕 golang 的 go tool 了,python 里面就没有类似的吗?
有个问题,vscode 的缩进感觉不如 pycharm 的好用呀
借楼问一下,python 没有 golang tool 那种工具集的
但是 vscode 毕竟不要钱呀,vscode 应该免费的东西里面顶级的了吧
1 ... 124  125  126  127  128  129  130  131  132  133 ... 162  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5516 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 48ms · UTC 06:39 · PVG 14:39 · LAX 23:39 · JFK 02:39
♥ Do have faith in what you're doing.