问题标签 [bpython]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
44 浏览

python - 如何在bpython中剪切和粘贴?

如果可能的话,我想直接在 shell 会话中剪切和粘贴。我在 .py 文件中有一个简单的 with 块:

这将很容易地剪切和粘贴到解释器中。但是,如果我尝试直接在 bpython 会话本身中剪切和粘贴,则会引发错误:

我觉得必须有一个简单的工作流程改变,我只需敲几下键就可以做到这一点。必须不断地按向上箭头重新插入可以做到这一点,但我们可以为整个最后一个块做类似 %hist 或类似的事情吗?我怎样才能做到这一点?我将 zsh 与 oh-my-zsh 和 powerlevel10k 一起使用。

0 投票
0 回答
24 浏览

python - 尽管安装了curses,但bpython没有在win 10上运行

所以我通过了解决方法,以便能够在 Windows 10 PC(64 位,Python 3.10.2)上运行 bpython。从http://www.lfd.uci.edu/~gohlke/pythonlibs/#curses安装了必要的诅咒

安装 bpython (pip install bpython)

并运行 bpython-curses.exe。我仍然收到以“ from fcntl import ioctl ModuleNotFoundError: No module named 'fcntl'”结尾的长错误

有任何想法吗?