V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  XIVN1987  ›  全部回复第 7 页 / 共 37 页
回复总数  723
1 ... 3  4  5  6  7  8  9  10  11  12 ... 37  
2021-03-19 10:14:38 +08:00
回复了 nickyang897897 创建的主题 Rust Rust 它凭啥这么难?学习路线这么陡峭。。。。
因为有且仅有它和 C++追求“zero cost abstraction”

既想要没有性能损失,还想要高级的抽象能力,,那肯定要损失点儿什么,,总不能只有好处、没有代价吧,,天下哪有这么好的事儿
2021-03-04 09:24:53 +08:00
回复了 csulyb 创建的主题 程序员 现在有没有好的跨平台的 UI 库
qt 跨平台、性能好、功能丰富,,久经考验,值得信赖

不过 C++学习、使用难度较大,,建议试试 PyQt 、PySide
2021-02-23 10:44:13 +08:00
回复了 James369 创建的主题 Python 从解释器的角度看, Java 和 Python 的解释过程原理是一样的吧?
“Python 可以被多种语言实现,比如 c 语言实现的 cpython,java 实现的 jython,c#实现的 IronPython 。
--- 就好比一把锁可以被多把钥匙打开,说明这把锁坏了。。”

这是什么奇葩脑回路??

按照楼主的说法,,Visual C++可以编译 C++,GCC 可以编译 C++,CLang 也可以编译 C++
就好比一把锁可以被多把钥匙打开,说明 C++这把锁坏了 ~~~^_^~~~
2021-02-23 10:38:27 +08:00
回复了 James369 创建的主题 Python 从解释器的角度看, Java 和 Python 的解释过程原理是一样的吧?
@James369
PyPy 有 JIT,,CPython 没有 JIT
不过 95%的人用的都是 CPython,,说 PyPy 没意义,,很多应用广泛的 Python 库 PyPy 支持的都不好
2021-02-23 09:48:14 +08:00
回复了 James369 创建的主题 Python 从解释器的角度看, Java 和 Python 的解释过程原理是一样的吧?
差远了,,Java 有 JIT,,
2021-02-18 16:37:56 +08:00
回复了 ml1344677 创建的主题 深圳 刚收到房源征用通知,感觉要被深圳清退了
@YouLMAO

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

实在是 V2EX 回复中插入空格方式太奇葩了,,我都注册六年了今天才学会,,
2021-02-08 12:36:55 +08:00
回复了 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-02-08 11:48:22 +08:00
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
@no1xsyzy

哇塞,,真的行了,,感谢大佬
2021-02-08 11:47:51 +08:00
回复了 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-02-08 10:35:05 +08:00
回复了 littleMaple 创建的主题 Python Python 3.7 的内置 breakpoint() 函数如何 backport 到 3.6 中?
@no1xsyzy

大佬,,你回复里的代码缩进怎么弄的??
2021-02-08 10:34:32 +08:00
回复了 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-02-08 10:33:21 +08:00
回复了 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-02-08 10:31:15 +08:00
回复了 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-02-08 10:29:44 +08:00
回复了 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-02-08 10:29:06 +08:00
回复了 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-02-05 15:25:36 +08:00
回复了 danytdlemon1900 创建的主题 Windows wsl2 的内存占用真是有够离谱的
坚持 WSL1 100 年不动摇
若对 WSL2 某些功能有需求,,不如装个虚拟机,,
2021-02-03 10:40:01 +08:00
回复了 James369 创建的主题 程序员 跨平台技术哪家强?
现在好多工具软件用 electron 开发,,

Qt 挺好,,就是 C++比较难,,PyQt/PySide 更易用些
2021-02-02 19:45:56 +08:00
回复了 XIVN1987 创建的主题 Java 哪里可以不用登录下载 jre8
@bclerdx

没问题,,注册后可以下载
1 ... 3  4  5  6  7  8  9  10  11  12 ... 37  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2878 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms · UTC 11:35 · PVG 19:35 · LAX 04:35 · JFK 07:35
Developed with CodeLauncher
♥ Do have faith in what you're doing.