超出 Pycharm 输出限制 [英] Pycharm output limit exceeded

查看:229
本文介绍了超出 Pycharm 输出限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个python代码来废弃数据.但是输出窗口在几 1000 行之后就超过了之前的输出.我正在抓取的数据超过一百万行.我使用 jetbeans 的 pycharm.支持一百万行输出的 IDE 或方法有哪些?

I wrote a python code to scrap data. But the output window over rights the previous output after a few 1000 lines. The data i am scrapping is over a million lines. I use pycharm by jetbeans. What are some IDE's or methods which support a million lines of output?

推荐答案

正如我在 评论,您描述的方式似乎不正确.除了打印一百万行之外,将 100 万行以上的内容扔到控制台对您没有任何作用.如果您想稍后使用此信息,您将无法使用.相反,您应该将此数据发送到某种类型的文件中,以便您以后可以使用它.

As I mentioned in the comments, the way you've described this seems incorrect. Throwing 1M+ lines to console doesn't do anything for you, other than printing a million lines. If you wanted to use this information later, you wouldn't be able to. Instead, you should be sending this data to a file of some kind so that you can use it later.

话虽如此,您可以通过以下过程增加 PyCharm 中的输出缓冲区:

That being said, you can increase the output buffer in PyCharm via the following process:

  • 点击帮助"
  • 点击编辑自定义属性"
  • 如果 idea.properties 文件不存在,这将打开一个文件或要求您创建一个文件.在这种情况下,请点击是".
  • 在文件中添加idea.cycle.buffer.size=2048
  • Click "Help"
  • Click "Edit Custom Properties"
  • This will either open a file or ask you to create one if the idea.properties file doesn't exist. Click "Yes" in that case.
  • Add idea.cycle.buffer.size=2048 to the file

这并不是完全禁用缓冲区,而是将其从默认的 1024kb 加倍到 2048kb.随意调整.

This is not completely disabling the buffer, but instead doubling it from the default 1024kb to 2048kb. Feel free to adjust as appropriate.

重新启动 PyCharm 以使用这些设置.

Restart PyCharm for these setting to be utilized.

这篇关于超出 Pycharm 输出限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆