Windows下的Pychecker [英] Pychecker under Windows

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

问题描述

在Windows中使用Pychecker有实用的方法吗?在IDLE下它没有工作

。 (事实上​​,它似乎最终会破坏一切,并且每次后续的语句和我执行的表达式都会被忽略。)

从DOS中的Python解释器运行它意味着一切在屏幕上滚动

。理想情况下,我想将其重定向到一个文件,或者能够在IDLE中使用
来使用它。


-

Ben Sizer

Is there a practical way to use Pychecker in Windows? It doesn''t work
under IDLE. (In fact, it seems to end up breaking everything, and
every subsequent statement and expression I execute gets ignored.)
Running it from the Python interpreter in DOS means everything scrolls
off the screen. Ideally I''d like to redirect it to a file, or be able
to use it in IDLE.

--
Ben Sizer

推荐答案

" Kylotan" < KY ***** @ hotmail.com>写道...
"Kylotan" <ky*****@hotmail.com> wrote ...
在Windows中使用Pychecker是否有实用的方法?在IDLE下它不起作用。 (事实上​​,它似乎最终会破坏一切,并且
我执行的每个后续语句和表达式都会被忽略。)
在DOS中从Python解释器运行它意味着所有内容都滚动到屏幕上。理想情况下,我想将其重定向到文件,或者能够在IDLE中使用它。
Is there a practical way to use Pychecker in Windows? It doesn''t work
under IDLE. (In fact, it seems to end up breaking everything, and
every subsequent statement and expression I execute gets ignored.)
Running it from the Python interpreter in DOS means everything scrolls
off the screen. Ideally I''d like to redirect it to a file, or be able
to use it in IDLE.




您可以将python输出重定向到文件从Windows命令行。

唯一警告是*某些*命令处理器(特别是NT,IIRC)输出

重定向仅在您明确调用python解释器时有效(即

使用命令python prog.py> file.out而不是隐式调用它

(即使用命令prog.py> file.out) 。


问候

-

Steve Holden http://www.holdenweb.com/

Python Web Programming http://pydish.holdenweb.com/pwp/

我会把自己的名字拧干如果我没有溢出的塞子




You can redirect python output to a file from the Windows command line. The
only caveat is for *some* command processors (NT in particular, IIRC) output
redirection only works if you explicitly call the python interpreter (i.e.
use the command "python prog.py > file.out") rather than implicitly call it
(i.e. use the command "prog.py > file.out").

regards
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
"I''d spoll my own name wring if I didn''t have a spilling chocker"





" Steve Holden" < SH ***** @ holdenweb.com>在消息中写道

news:iEXwb.1475

"Steve Holden" <sh*****@holdenweb.com> wrote in message
news:iEXwb.1475


US3.586@okepread03 ...
US3.586@okepread03...
" Kylotan" < KY ***** @ hotmail.com>写道...
"Kylotan" <ky*****@hotmail.com> wrote ...
在Windows中使用Pychecker是否有实用的方法?在IDLE下它不起作用。 (事实上​​,它似乎最终会破坏一切,并且
我执行的每个后续语句和表达式都会被忽略。)
在DOS中从Python解释器运行它意味着所有内容都滚动到屏幕上。理想情况下,我想将其重定向到文件,或者能够在IDLE中使用它。

您可以从Windows命令行将python输出重定向到文件。
Is there a practical way to use Pychecker in Windows? It doesn''t work
under IDLE. (In fact, it seems to end up breaking everything, and
every subsequent statement and expression I execute gets ignored.)
Running it from the Python interpreter in DOS means everything scrolls
off the screen. Ideally I''d like to redirect it to a file, or be able
to use it in IDLE.

You can redirect python output to a file from the Windows command line.



唯一需要注意的是*某些*命令处理器(特别是NT,IIRC)
输出重定向只有在你明确调用python解释器时才有效(即
使用命令python prog.py> file.out而不是隐式调用
it(即使用命令prog.py> file.out)。


或者,如果您在NT衍生项下运行,请使用.cmd

命令解释器而不是.bat命令解释器。然后

你得到那个漂亮的滚动条,这样你就可以看到滚动的内容了。作品

至少在XP上很棒。


John Roth
问候
-
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
如果我没有一个溢出的chocker,那么我自己的名字就会变成


The only caveat is for *some* command processors (NT in particular, IIRC) output redirection only works if you explicitly call the python interpreter (i.e.
use the command "python prog.py > file.out") rather than implicitly call it (i.e. use the command "prog.py > file.out").
Alternatively, if you''re running under an NT derivative, use the .cmd
command interpreter rather than the .bat command interpreter. Then
you get that nice scroll bar so you can see what scrolled off. Works
great on XP at least.

John Roth
regards
--
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
"I''d spoll my own name wring if I didn''t have a spilling chocker"



这篇关于Windows下的Pychecker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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