IDLE - 自定义输出格式 [英] IDLE - Customizing output format
问题描述
IDLE有这样的输出格式:
>> object
< type''object''>
>> type
< type''type''>
>> object .__ class__
< type''type''>
>> object .__ bases__
如何将其自定义为:
>>对象
< type''object''>
>> type
< type''type''>
>> object .__ class__
< type''type''>
>> object .__ bases__
或者:
> > object
:< type''object''>
>> type
:< type''type''>
>> object .__ class__
:< type''type''>
>> object .__ bases__
(最好不修改代码)
..
-
http://lazaridis.com
Ilias Lazaridis写道:
IDLE有这样的输出格式:
>> object
< type''object''>
>> type
< ;输入''type''>
>> object .__ class__
< type''type''>
>> object .__ bases__
如何将其自定义为:
>> object
< type''object''>
>> type
< ;输入''type''>
>> object .__ class__
< type''type''>
>> object .__ bases__
或者:
>> object
:< type''object''>
>> type
: < type''type''>
>> object .__ class__
:< type''type''>
>> object .__ bases__
(最好不要修改代码)
我认为这是不可能的。
我想知道其他用户不是对此降低了
的可读性感到恼火。
无论如何。
..
-
http://lazaridis.com
Ilias Lazaridis写道:
Ilias Lazaridis写道:
>> IDLE的输出格式如下:
>> object
< ;输入''对象''>
>> type
< type''type''>
>> object .__ class__
< type''type''>
>> object .__ bases__
如何将其自定义为:
< blockquote class =post_quotes>
>> object
< type''object''>
>> type
< type''type''>
>> object .__ class__
< type''type''>
>> object .__ bases__
或者说:
>> object
:< type''object''>
>> type
:< type''type''>
>> object .__ class__
:< type''type''>
>> object .__ bases__
(最好不修改代码)
我认为这是不可能的。
我想知道其他用户不会因此减少而烦恼
可读性。
我想知道,当世界其他地方无法分享你的看法时,你会不断惊喜。这不带*任何*信息吗?
无论如何。
确实。
问候
Steve
-
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC / Ltd http://www.holdenweb.com
Skype:holdenweb http://holdenweb.blogspot.com
最近的Ramblings http://del.icio.us /steve.holden
Steve Holden写道:
Ilias Lazaridis写道:
Ilias Lazaridis写道:
> IDLE的输出格式如下:
对象
< ty pe''对象''>
类型
< type''type''>
对象.__ class__
< type''type''>
object.__bases__
如何自定义它:
< type''object''>
类型
< type''type''>
object .__ class__
< type''type''>
object.__bases__
或者说:
对象
:<类型''对象''>
类型
:< type''type''>
object .__ class__
:< type''type''>
对象。 __bases__
(最好不修改代码)
我认为这是不可能的。
我想知道其他用户不会因为这个降低的
可读性而烦恼。
我想知道当世界其他地方
无法分享你的看法时你会不断惊喜。这不带*任何*信息吗?
不是世界其他地方,而是其他的python社区。
这是一个很大的区别。
所以看起来我必须编码来改变输出格式。
让我想起'过去的美好时光'。
。
的确如此。
IDLE has an output format like this:
>>object
<type ''object''>
>>type
<type ''type''>
>>object.__class__
<type ''type''>
>>object.__bases__
How can I customize it to become like that:
>>object
<type ''object''>
>>type
<type ''type''>
>>object.__class__
<type ''type''>
>>object.__bases__
or that:
>>object
: <type ''object''>
>>type
: <type ''type''>
>>object.__class__
: <type ''type''>
>>object.__bases__
(preferably without modifying code)
..
--
http://lazaridis.com
Ilias Lazaridis wrote:IDLE has an output format like this:
>>object
<type ''object''>
>>type
<type ''type''>
>>object.__class__
<type ''type''>
>>object.__bases__
How can I customize it to become like that:
>>object
<type ''object''>
>>type
<type ''type''>
>>object.__class__
<type ''type''>
>>object.__bases__
or that:
>>object
: <type ''object''>
>>type
: <type ''type''>
>>object.__class__
: <type ''type''>
>>object.__bases__
(preferably without modifying code)I assume this is not possible.
I am wondering that other users are not annoyed by this reduced
readability.
anyway.
..
--
http://lazaridis.com
Ilias Lazaridis wrote:Ilias Lazaridis wrote:
>>IDLE has an output format like this:
>>object<type ''object''>
>>type<type ''type''>
>>object.__class__<type ''type''>
>>object.__bases__
How can I customize it to become like that:
>>object<type ''object''>
>>type<type ''type''>
>>object.__class__<type ''type''>
>>object.__bases__
or that:
>>object: <type ''object''>
>>type: <type ''type''>
>>object.__class__: <type ''type''>
>>object.__bases__
(preferably without modifying code)
I assume this is not possible.
I am wondering that other users are not annoyed by this reduced
readability.
And I am wondering at your continual surprise when the rest of the world
fails to share your perceptions. Doesn''t this carry *any* information?
anyway.
Indeed.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
Steve Holden wrote:Ilias Lazaridis wrote:Ilias Lazaridis wrote:
>IDLE has an output format like this:
object
<type ''object''>
type
<type ''type''>
object.__class__
<type ''type''>
object.__bases__
How can I customize it to become like that:
object
<type ''object''>
type
<type ''type''>
object.__class__
<type ''type''>
object.__bases__
or that:
object
: <type ''object''>
type
: <type ''type''>
object.__class__
: <type ''type''>
object.__bases__
(preferably without modifying code)I assume this is not possible.
I am wondering that other users are not annoyed by this reduced
readability.And I am wondering at your continual surprise when the rest of the world
fails to share your perceptions. Doesn''t this carry *any* information?not the rest of the world, but the rest of the python community.
That''s a big difference.
So it looks that I have to code to change the output format.
Reminds me ''good old days''.
anyway.Indeed.
这篇关于IDLE - 自定义输出格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!