V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  XIVN1987  ›  全部回复第 13 页 / 共 42 页
回复总数  838
1 ... 9  10  11  12  13  14  15  16  17  18 ... 42  
2021 年 2 月 18 日
回复了 ml1344677 创建的主题 深圳 刚收到房源征用通知,感觉要被深圳清退了
@YouLMAO

你没看题主说吗,“无法提前解约的,提前解约算我违约”,,
这样的话提早通知又有什么用?还不是得等到快到期的时候再去找房子
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
@byaiu

实在是 V2EX 回复中插入空格方式太奇葩了,,我都注册六年了今天才学会,,
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
@no1xsyzy

是的,,抱歉拷贝不完整

class ExceptionHook:      # 异常启动 ipython
   instance = None
   def __call__(self, *args, **kwargs):
     if self.instance is None:
       from IPython.core import ultratb
       self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
     return self.instance(*args, **kwargs)

sys.excepthook = ExceptionHook()
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
@no1xsyzy

哇塞,,真的行了,,感谢大佬
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
全角空格,试一下:

class ExceptionHook: # 异常启动 ipython
   instance = None
   def __call__(self, *args, **kwargs):
     if self.instance is None:
       from IPython.core import ultratb
       self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
     return self.instance(*args, **kwargs)
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
@no1xsyzy

大佬,,你回复里的代码缩进怎么弄的??
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
python 解释器交互太简陋了,,建议用 ipdb 进入 ipython

import ipdb; ipdb.set_trace() # 设置断点

class ExceptionHook: # 异常启动 ipython
....instance = None
....def __call__(self, *args, **kwargs):
........if self.instance is None:
............from IPython.core import ultratb
............self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
........return self.instance(*args, **kwargs)
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
python 解释器交互太简陋了,,建议用 ipdb 进入 ipython

import ipdb; ipdb.set_trace() # 设置断点

class ExceptionHook: # 异常启动 ipython
&nbsp ;&nbsp ; instance = None
&nbsp ;&nbsp ; def __call__(self, *args, **kwargs):
&nbsp ;&nbsp ;&nbsp ;&nbsp ; if self.instance is None:
&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ; from IPython.core import ultratb
&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ;&nbsp ; self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
&nbsp ;&nbsp ;&nbsp ;&nbsp ; return self.instance(*args, **kwargs)
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
python 解释器交互太简陋了,,建议用 ipdb 进入 ipython

``` python
import ipdb; ipdb.set_trace() # 设置断点

class ExceptionHook: # 异常启动 ipython
instance = None
def __call__(self, *args, **kwargs):
if self.instance is None:
from IPython.core import ultratb
self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
return self.instance(*args, **kwargs)
```
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
python 解释器交互太简陋了,,建议用 ipdb 进入 ipython

import ipdb; ipdb.set_trace() # 设置断点

class ExceptionHook: # 异常启动 ipython
instance = None
def __call__(self, *args, **kwargs):
if self.instance is None:
from IPython.core import ultratb
self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
return self.instance(*args, **kwargs)
2021 年 2 月 8 日
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
python 解释器交互太简陋了,,建议用 ipdb 进入 ipython

import ipdb; ipdb.set_trace() # 设置断点

class ExceptionHook: # 异常启动 ipython
instance = None
def __call__(self, *args, **kwargs):
if self.instance is None:
from IPython.core import ultratb
self.instance = ultratb.FormattedTB(mode='Plain', color_scheme='Linux', call_pdb=1)
return self.instance(*args, **kwargs)
2021 年 2 月 5 日
回复了 danytdlemon1900 创建的主题 Windows wsl2 的内存占用真是有够离谱的
坚持 WSL1 100 年不动摇
若对 WSL2 某些功能有需求,,不如装个虚拟机,,
2021 年 2 月 3 日
回复了 James369 创建的主题 程序员 跨平台技术哪家强?
现在好多工具软件用 electron 开发,,

Qt 挺好,,就是 C++比较难,,PyQt/PySide 更易用些
2021 年 2 月 2 日
回复了 XIVN1987 创建的主题 Java 哪里可以不用登录下载 jre8
@bclerdx

没问题,,注册后可以下载
2021 年 2 月 2 日
回复了 XIVN1987 创建的主题 Java 哪里可以不用登录下载 jre8
另外,,我需要的是 jre,,楼上好多推荐 jdk 的,,浪费硬盘啊 ( # ▽ # )
2021 年 2 月 2 日
回复了 XIVN1987 创建的主题 Java 哪里可以不用登录下载 jre8
感谢楼上各位,,我注册下载了,,

除了邮箱和密码其他都瞎填的,,

估计大多数人都瞎填的,,不知道 Oracle 统计那么多垃圾信息干啥,,人家就想下载个 jre 而已
2021 年 2 月 2 日
回复了 Renco 创建的主题 职场话题 程序员的薪资究竟是怎么定义的?
即和能力有关,也和机遇有关
Mithril.js 和 element-ui 是不是类似的东西?

看了下主页完全没有介绍组件,,那组件需要完全自己写?
2021 年 2 月 2 日
回复了 Igarashi01 创建的主题 浏览器 大家使用 Firefox 的体验是什么样的?
现在浏览器都是免费的,,Mozilla 花这么大力气开发 Firefox 却不能挣钱,怎么可能竞争的过 google 、microsoft 这些大地主
1 ... 9  10  11  12  13  14  15  16  17  18 ... 42  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1104 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 23:26 · PVG 07:26 · LAX 16:26 · JFK 19:26
♥ Do have faith in what you're doing.