Python论坛  - 讨论区

标题:[python-chinese] tut 2.5中的问题

2006年07月24日 星期一 22:39

Simon Yan simonyanix at gmail.com
Mon Jul 24 22:39:22 HKT 2006

我在实验tut2.5(感谢王鑫老师的翻译)中提到的程序代码的时候,出现了这样的问题。
麻烦大牛给解决一下
原文如下:
3.1 if Statements
Perhaps the most well-known statement type is the if statement. For example:

>>> x = int(raw_input("Please enter an integer: "))
>>> if x < 0:
... x = 0
... print 'Negative changed to zero'
... elif x == 0:
... print 'Zero'
... elif x == 1:
... print 'Single'
... else:
... print 'More'


可是我在IDLE中敲上面的程序的时候,成了这样:
>>> x = int( raw_input ("Please enter an integer:"))
Please enter an integer:12
>>> if x < 0:
    x = 0
    print 'Negative changed to 0'
    elif x == 0:

SyntaxError: invalid syntax
>>>

-- 
http://blog.csdn.net/simonyanix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060724/f4a9f13b/attachment-0001.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月24日 星期一 22:46

3751 lwm3751 at gmail.com
Mon Jul 24 22:46:40 HKT 2006

译者是姓刘!!!
对你的问题,我猜一定是你没有弄好缩进,python里面对缩进要求很严格的。

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月24日 星期一 22:49

Chao Xiong chaox.maillist at gmail.com
Mon Jul 24 22:49:16 HKT 2006

应该是缩进的问题,你再试试吧~~
输入elif的时候,把前面的缩进去掉~


2006/7/24, Simon Yan <simonyanix at gmail.com>:
>
> 我在实验tut2.5(感谢王鑫老师的翻译)中提到的程序代码的时候,出现了这样的问题。
> 麻烦大牛给解决一下
> 原文如下:
> 3.1 if Statements
> Perhaps the most well-known statement type is the if statement. For
> example:
>
> >>> x = int(raw_input("Please enter an integer: "))
> >>> if x < 0:
> ... x = 0
> ... print 'Negative changed to zero'
> ... elif x == 0:
> ... print 'Zero'
> ... elif x == 1:
> ... print 'Single'
> ... else:
> ... print 'More'
>
>
> 可是我在IDLE中敲上面的程序的时候,成了这样:
> >>> x = int( raw_input ("Please enter an integer:"))
> Please enter an integer:12
> >>> if x < 0:
>     x = 0
>     print 'Negative changed to 0'
>     elif x == 0:
>
> SyntaxError: invalid syntax
> >>>
>
> --
> http://blog.csdn.net/simonyanix
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060724/84ffbcc8/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月24日 星期一 22:53

Simon Yan simonyanix at gmail.com
Mon Jul 24 22:53:08 HKT 2006

sry,打错. 刘老师,对不住了!
当时有同学在旁边捣乱:)

可是,我是敲完上面一行以后它给的自动缩进啊.
那是应该用空格缩进呢,还是用tab缩进?

2006/7/24, 3751 <lwm3751 at gmail.com>:
>
> 译者是姓刘!!!
> 对你的问题,我猜一定是你没有弄好缩进,python里面对缩进要求很严格的。
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>


-- 
http://blog.csdn.net/simonyanix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060724/0256dc81/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月24日 星期一 22:55

Simon Yan simonyanix at gmail.com
Mon Jul 24 22:55:39 HKT 2006

果然成了
嘿嘿
小问题
麻烦大家了

2006/7/24, Chao Xiong <chaox.maillist at gmail.com>:
>
> 应该是缩进的问题,你再试试吧~~
> 输入elif的时候,把前面的缩进去掉~
>
>
> 2006/7/24, Simon Yan <simonyanix at gmail.com>:
> >
> > 我在实验tut2.5(感谢王鑫老师的翻译)中提到的程序代码的时候,出现了这样的问题。
> 麻烦大牛给解决一下
> 原文如下:
> 3.1 if Statements
> Perhaps the most well-known statement type is the if statement. For
> example:
>
> >>> x = int(raw_input("Please enter an integer: "))
> >>> if x < 0:
> ... x = 0
> ... print 'Negative changed to zero'
> ... elif x == 0:
> ... print 'Zero'
> ... elif x == 1:
> ... print 'Single'
> ... else:
> ... print 'More'
>
>
> 可是我在IDLE中敲上面的程序的时候,成了这样:
> >>> x = int( raw_input ("Please enter an integer:"))
> Please enter an integer:12
> >>> if x < 0:
>     x = 0
>     print 'Negative changed to 0'
>     elif x == 0:
>
> SyntaxError: invalid syntax
> >>>
>
> --
> http://blog.csdn.net/simonyanix
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>


-- 
http://blog.csdn.net/simonyanix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060724/168dda57/attachment-0001.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月25日 星期二 11:06

Dawei Pang pangdae at gmail.com
Tue Jul 25 11:06:04 HKT 2006

能给一个tut 2.5的链接吗,多谢了

2006/7/24, Simon Yan <simonyanix at gmail.com>:
>
> 果然成了
> 嘿嘿
> 小问题
> 麻烦大家了
>
> 2006/7/24, Chao Xiong <chaox.maillist at gmail.com>:
> >
> > 应该是缩进的问题,你再试试吧~~
> 输入elif的时候,把前面的缩进去掉~
>
>
> 2006/7/24, Simon Yan <simonyanix at gmail.com>:
> >
> > 我在实验tut2.5(感谢王鑫老师的翻译)中提到的程序代码的时候,出现了这样的问题。
> 麻烦大牛给解决一下
> 原文如下:
>  3.1 if Statements
> Perhaps the most well-known statement type is the if statement. For
> example:
>
> >>> x = int(raw_input("Please enter an integer: "))
> >>> if x < 0:
> ... x = 0
> ... print 'Negative changed to zero'
> ... elif x == 0:
> ... print 'Zero'
> ... elif x == 1:
> ... print 'Single'
> ... else:
> ... print 'More'
>
>
> 可是我在IDLE中敲上面的程序的时候,成了这样:
> >>> x = int( raw_input ("Please enter an integer:"))
> Please enter an integer:12
> >>> if x < 0:
>     x = 0
>     print 'Negative changed to 0'
>     elif x == 0:
>
> SyntaxError: invalid syntax
> >>>
>
> --
> http://blog.csdn.net/simonyanix
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
>
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to   python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
> --
> http://blog.csdn.net/simonyanix
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060725/5882ef7f/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月25日 星期二 11:16

刘鑫 march.liu at gmail.com
Tue Jul 25 11:16:52 HKT 2006

http://wiki.woodpecker.org.cn/moin/March_Liu/PyTutorial

2006/7/25, Dawei Pang <pangdae at gmail.com>:
>
> 能给一个tut 2.5的链接吗,多谢了
>
>
-- 
欢迎访问:
http://blog.csdn.net/ccat

刘鑫
March.Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060725/7e5e4745/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月25日 星期二 15:06

lianchao lianchao at sega-wow.com
Tue Jul 25 15:06:31 HKT 2006

我用的是Cygwin.
print 似乎只能打印白色的。
哪个库提供打印彩色的字的API?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060725/ba9315ff/attachment.html

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月25日 星期二 15:47

netkiller openunix at 163.com
Tue Jul 25 15:47:07 HKT 2006

ANSI 然后加控制码.或用cursor.h(名字不确定)库..
  ----- Original Message ----- 
  From: lianchao 
  To: python-chinese at lists.python.cn 
  Sent: Tuesday, July 25, 2006 3:06 PM
  Subject: [python-chinese] 如何在控制台下打印彩色的字


  我用的是Cygwin.
  print 似乎只能打印白色的。
  哪个库提供打印彩色的字的API?



------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese at lists.python.cn
  Subscribe: send subscribe to python-chinese-request at lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060725/f90a0b07/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 08:27

shhgs shhgs.efhilt at gmail.com
Wed Jul 26 08:27:33 HKT 2006

前面加控制符。shell下面我知道用tput setaf命令。比如tput setaf 1是红色,4是蓝色等等。

Py下面可以用curses。当然,直接拿到控制符,然后往字符串前面加也应该可以。



On 7/25/06, netkiller <openunix at 163.com> wrote:
>
>
> ANSI 然后加控制码.或用cursor.h(名字不确定)库..
>
> ----- Original Message -----
> From: lianchao
> To: python-chinese at lists.python.cn
> Sent: Tuesday, July 25, 2006 3:06 PM
> Subject: [python-chinese] 如何在控制台下打印彩色的字
>
>
> 我用的是Cygwin.
> print 似乎只能打印白色的。
> 哪个库提供打印彩色的字的API?
>
>
>  ________________________________
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 14:26

ainulinde ainulinde at gmail.com
Wed Jul 26 14:26:08 HKT 2006

windows下面可以考虑
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901
在做完改变以后,可以利用
    print set_color(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED)
来回复原来的背景。
附件是我这边测试的截图


On 7/25/06, lianchao <lianchao at sega-wow.com> wrote:
>
>
> 我用的是Cygwin.
> print 似乎只能打印白色的。
> 哪个库提供打印彩色的字的API?
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conso.png
Type: image/png
Size: 6159 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20060726/e31ba8cc/conso-0001.png

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 15:51

netkiller openunix at 163.com
Wed Jul 26 15:51:47 HKT 2006

问一下..active python 好用吗??
----- Original Message ----- 
From: "ainulinde" <ainulinde at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Wednesday, July 26, 2006 2:26 PM
Subject: Re: [python-chinese] 如何在控制台下打印彩色的字


> windows下面可以考虑
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901
> 在做完改变以后,可以利用
>    print set_color(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED)
> 来回复原来的背景。
> 附件是我这边测试的截图
>
>
> On 7/25/06, lianchao <lianchao at sega-wow.com> wrote:
>>
>>
>> 我用的是Cygwin.
>> print 似乎只能打印白色的。
>> 哪个库提供打印彩色的字的API?
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese at lists.python.cn
>> Subscribe: send subscribe to
>> python-chinese-request at lists.python.cn
>> Unsubscribe: send unsubscribe to
>> python-chinese-request at lists.python.cn
>> Detail Info:
>> http://python.cn/mailman/listinfo/python-chinese
>>
>>
>


--------------------------------------------------------------------------------


> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese 




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 16:08

ainulinde ainulinde at gmail.com
Wed Jul 26 16:08:51 HKT 2006

active python的ide比官方的哪个idle方便些。有代码自动提示,代码单步调试单步什么的对unicode的字符也能直接显示。
而且集成了pywin32,一向比较懒,所以都是装active python的。

On 7/26/06, netkiller <openunix at 163.com> wrote:
>
> 问一下..active python 好用吗??
> ----- Original Message -----
> From: "ainulinde" <ainulinde at gmail.com>
> To: <python-chinese at lists.python.cn>
> Sent: Wednesday, July 26, 2006 2:26 PM
> Subject: Re: [python-chinese] 如何在控制台下打印彩色的字
>
>
> > windows下面可以考虑
> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901
> > 在做完改变以后,可以利用
> >    print set_color(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED)
> > 来回复原来的背景。
> > 附件是我这边测试的截图
> >
> >
> > On 7/25/06, lianchao <lianchao at sega-wow.com> wrote:
> >>
> >>
> >> 我用的是Cygwin.
> >> print 似乎只能打印白色的。
> >> 哪个库提供打印彩色的字的API?
> >>
> >> _______________________________________________
> >> python-chinese
> >> Post: send python-chinese at lists.python.cn
> >> Subscribe: send subscribe to
> >> python-chinese-request at lists.python.cn
> >> Unsubscribe: send unsubscribe to
> >> python-chinese-request at lists.python.cn
> >> Detail Info:
> >> http://python.cn/mailman/listinfo/python-chinese
> >>
> >>
> >
>
>
> --------------------------------------------------------------------------------
>
>
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 16:36

netkiller openunix at 163.com
Wed Jul 26 16:36:34 HKT 2006

那我以后也用.active python
是因为下载active perl 时看到的.哈哈.

----- Original Message ----- 
From: "ainulinde" <ainulinde at gmail.com>
To: <python-chinese at lists.python.cn>
Sent: Wednesday, July 26, 2006 4:08 PM
Subject: Re: [python-chinese] 如何在控制台下打印彩色的字


> active python的ide比官方的哪个idle方便些。有代码自动提示,代码单步调试单步什么的对unicode的字符也能直接显示。
> 而且集成了pywin32,一向比较懒,所以都是装active python的。
>
> On 7/26/06, netkiller <openunix at 163.com> wrote:
>>
>> 问一下..active python 好用吗??
>> ----- Original Message -----
>> From: "ainulinde" <ainulinde at gmail.com>
>> To: <python-chinese at lists.python.cn>
>> Sent: Wednesday, July 26, 2006 2:26 PM
>> Subject: Re: [python-chinese] 如何在控制台下打印彩色的字
>>
>>
>> > windows下面可以考虑
>> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901
>> > 在做完改变以后,可以利用
>> >    print set_color(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED)
>> > 来回复原来的背景。
>> > 附件是我这边测试的截图
>> >
>> >
>> > On 7/25/06, lianchao <lianchao at sega-wow.com> wrote:
>> >>
>> >>
>> >> 我用的是Cygwin.
>> >> print 似乎只能打印白色的。
>> >> 哪个库提供打印彩色的字的API?
>> >>
>> >> _______________________________________________
>> >> python-chinese
>> >> Post: send python-chinese at lists.python.cn
>> >> Subscribe: send subscribe to
>> >> python-chinese-request at lists.python.cn
>> >> Unsubscribe: send unsubscribe to
>> >> python-chinese-request at lists.python.cn
>> >> Detail Info:
>> >> http://python.cn/mailman/listinfo/python-chinese
>> >>
>> >>
>> >
>>
>>
>> --------------------------------------------------------------------------------
>>
>>
>> > _______________________________________________
>> > python-chinese
>> > Post: send python-chinese at lists.python.cn
>> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
>> > Unsubscribe: send unsubscribe to 
>> > python-chinese-request at lists.python.cn
>> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>>
>>
>> _______________________________________________
>> python-chinese
>> Post: send python-chinese at lists.python.cn
>> Subscribe: send subscribe to python-chinese-request at lists.python.cn
>> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
>> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>>
>


--------------------------------------------------------------------------------


> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese 




[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 17:50

ainulinde ainulinde at gmail.com
Wed Jul 26 17:50:29 HKT 2006

我前几个月装过一次active perl,装好以后,没有类似于idle/pythonwin这样的编辑器。
问了熟悉perl的人,他说本来就是这样的,看来perl的人都比较厉害啊。

On 7/26/06, netkiller <openunix at 163.com> wrote:
>
> 那我以后也用.active python
> 是因为下载active perl 时看到的.哈哈.
>
> ----- Original Message -----
> From: "ainulinde" <ainulinde at gmail.com>
> To: <python-chinese at lists.python.cn>
> Sent: Wednesday, July 26, 2006 4:08 PM
> Subject: Re: [python-chinese] 如何在控制台下打印彩色的字
>
>
> > active python的ide比官方的哪个idle方便些。有代码自动提示,代码单步调试单步什么的对unicode的字符也能直接显示。
> > 而且集成了pywin32,一向比较懒,所以都是装active python的。
> >
> > On 7/26/06, netkiller <openunix at 163.com> wrote:
> >>
> >> 问一下..active python 好用吗??
> >> ----- Original Message -----
> >> From: "ainulinde" <ainulinde at gmail.com>
> >> To: <python-chinese at lists.python.cn>
> >> Sent: Wednesday, July 26, 2006 2:26 PM
> >> Subject: Re: [python-chinese] 如何在控制台下打印彩色的字
> >>
> >>
> >> > windows下面可以考虑
> >> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901
> >> > 在做完改变以后,可以利用
> >> >    print set_color(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED)
> >> > 来回复原来的背景。
> >> > 附件是我这边测试的截图
> >> >
> >> >
> >> > On 7/25/06, lianchao <lianchao at sega-wow.com> wrote:
> >> >>
> >> >>
> >> >> 我用的是Cygwin.
> >> >> print 似乎只能打印白色的。
> >> >> 哪个库提供打印彩色的字的API?
> >> >>
> >> >> _______________________________________________
> >> >> python-chinese
> >> >> Post: send python-chinese at lists.python.cn
> >> >> Subscribe: send subscribe to
> >> >> python-chinese-request at lists.python.cn
> >> >> Unsubscribe: send unsubscribe to
> >> >> python-chinese-request at lists.python.cn
> >> >> Detail Info:
> >> >> http://python.cn/mailman/listinfo/python-chinese
> >> >>
> >> >>
> >> >
> >>
> >>
> >> --------------------------------------------------------------------------------
> >>
> >>
> >> > _______________________________________________
> >> > python-chinese
> >> > Post: send python-chinese at lists.python.cn
> >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> >> > Unsubscribe: send unsubscribe to
> >> > python-chinese-request at lists.python.cn
> >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >>
> >>
> >>
> >> _______________________________________________
> >> python-chinese
> >> Post: send python-chinese at lists.python.cn
> >> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> >> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> >> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >>
> >
>
>
> --------------------------------------------------------------------------------
>
>
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月26日 星期三 17:58

xxmplus xxmplus at gmail.com
Wed Jul 26 17:58:48 HKT 2006

sendmail现象,即没有文档的技术就是最好的技术,呵呵

On 7/26/06, ainulinde <ainulinde at gmail.com> wrote:
> 我前几个月装过一次active perl,装好以后,没有类似于idle/pythonwin这样的编辑器。
> 问了熟悉perl的人,他说本来就是这样的,看来perl的人都比较厉害啊。
>
> On 7/26/06, netkiller <openunix at 163.com> wrote:
> >
> > 那我以后也用.active python
> > 是因为下载active perl 时看到的.哈哈.
> >
> > ----- Original Message -----
> > From: "ainulinde" <ainulinde at gmail.com>
> > To: <python-chinese at lists.python.cn>
> > Sent: Wednesday, July 26, 2006 4:08 PM
> > Subject: Re: [python-chinese] 如何在控制台下打印彩色的字
> >
> >
> > > active python的ide比官方的哪个idle方便些。有代码自动提示,代码单步调试单步什么的对unicode的字符也能直接显示。
> > > 而且集成了pywin32,一向比较懒,所以都是装active python的。
> > >
> > > On 7/26/06, netkiller <openunix at 163.com> wrote:
> > >>
> > >> 问一下..active python 好用吗??
> > >> ----- Original Message -----
> > >> From: "ainulinde" <ainulinde at gmail.com>
> > >> To: <python-chinese at lists.python.cn>
> > >> Sent: Wednesday, July 26, 2006 2:26 PM
> > >> Subject: Re: [python-chinese] 如何在控制台下打印彩色的字
> > >>
> > >>
> > >> > windows下面可以考虑
> > >> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496901
> > >> > 在做完改变以后,可以利用
> > >> >    print set_color(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED)
> > >> > 来回复原来的背景。
> > >> > 附件是我这边测试的截图
> > >> >
> > >> >
> > >> > On 7/25/06, lianchao <lianchao at sega-wow.com> wrote:
> > >> >>
> > >> >>
> > >> >> 我用的是Cygwin.
> > >> >> print 似乎只能打印白色的。
> > >> >> 哪个库提供打印彩色的字的API?
> > >> >>
> > >> >> _______________________________________________
> > >> >> python-chinese
> > >> >> Post: send python-chinese at lists.python.cn
> > >> >> Subscribe: send subscribe to
> > >> >> python-chinese-request at lists.python.cn
> > >> >> Unsubscribe: send unsubscribe to
> > >> >> python-chinese-request at lists.python.cn
> > >> >> Detail Info:
> > >> >> http://python.cn/mailman/listinfo/python-chinese
> > >> >>
> > >> >>
> > >> >
> > >>
> > >>
> > >> --------------------------------------------------------------------------------
> > >>
> > >>
> > >> > _______________________________________________
> > >> > python-chinese
> > >> > Post: send python-chinese at lists.python.cn
> > >> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > >> > Unsubscribe: send unsubscribe to
> > >> > python-chinese-request at lists.python.cn
> > >> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> python-chinese
> > >> Post: send python-chinese at lists.python.cn
> > >> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > >> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > >> Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >>
> > >
> >
> >
> > --------------------------------------------------------------------------------
> >
> >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese at lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese at lists.python.cn
> > Subscribe: send subscribe to python-chinese-request at lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>


-- 
Any complex technology which doesn't come with documentation must be the best
available.

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月28日 星期五 13:38

wangmm kernellearn at gmail.com
Fri Jul 28 13:38:52 HKT 2006

tut 2.5里好像没有介绍相对路径import的新特性,不知是不是这样?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060728/ce582b17/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月28日 星期五 14:04

刘鑫 march.liu at gmail.com
Fri Jul 28 14:04:30 HKT 2006

tut里感觉只介绍了with和yield的新内容,其它的新特性都没有提到,看来要完整了解Python新特性还是要读What's new.

在06-7-28,wangmm <kernellearn at gmail.com> 写道:
>
> tut 2.5里好像没有介绍相对路径import的新特性,不知是不是这样?
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>


-- 
欢迎访问:
http://blog.csdn.net/ccat

刘鑫
March.Liu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060728/c40338bb/attachment.htm

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月28日 星期五 14:34

笨笨狗 chen.ruijie at gmail.com
Fri Jul 28 14:34:05 HKT 2006

在 06-7-28,刘鑫<march.liu at gmail.com> 写道:
> tut里感觉只介绍了with和yield的新内容,其它的新特性都没有提到,看来要完整了解Python新特性还是要读What's


要不翻译一下吧,嘿嘿

-- 
云电清华同方小民工

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月31日 星期一 15:27

li penguin zhendeshiwo at gmail.com
Mon Jul 31 15:27:52 HKT 2006

想提供一些tut方面的资料吗 thank you

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号