Python论坛  - 讨论区

标题:[python-chinese] 关于一个.py文件应该放哪些东西的问题

2007年07月10日 星期二 21:50

Xell Zhang xellzhang在gmail.com
星期二 七月 10 21:50:50 HKT 2007

´ó¼ÒºÃ£¬¸Õ¿ªÊ¼Ñ§£¬¶ÔÓÚÒ»¸ö.pyÎļþÓ¦¸Ã·ÅÄÄЩ¶«Î÷ÓеãÃÔ»ó£¬ÊDz»ÊÇ·ÅÒ»¸öclass»òÕß¹¦ÄÜÁªÏµ½ôÃܵļ¸¸öclass£¿Ê²Ã´Ê±ºòÓ¦¸Ã·ÖÔÚ²»Í¬Îļþ£¿

-- 
Zhang Xiao

Junior engineer, Web development

Ethos Tech.
http://www.ethos.com.cn
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070710/f72731f0/attachment.html 

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

2007年07月10日 星期二 21:59

Li Qingfeng liqfemail在gmail.com
星期二 七月 10 21:59:33 HKT 2007

Ò»¸ö.pyÎļþ¾ÍÊÇÒ»¸ömodule£¬ÊµÏÖijһÖÖ¹¦ÄܵÄclass¿ÉÒÔ·ÅÔÚÒ»¸ömoduleÀïÃæ¡£

ÔÚ07-7-10£¬Xell Zhang <xellzhang在gmail.com> дµÀ£º
>
> ´ó¼ÒºÃ£¬¸Õ¿ªÊ¼Ñ§£¬¶ÔÓÚÒ»¸ö.pyÎļþÓ¦¸Ã·ÅÄÄЩ¶«Î÷ÓеãÃÔ»ó£¬ÊDz»ÊÇ·ÅÒ»¸öclass»òÕß¹¦ÄÜÁªÏµ½ôÃܵļ¸¸öclass£¿Ê²Ã´Ê±ºòÓ¦¸Ã·ÖÔÚ²»Í¬Îļþ£¿
>
> --
> Zhang Xiao
>
> Junior engineer, Web development
>
> Ethos Tech.
> http://www.ethos.com.cn
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070710/ac48c7c1/attachment.htm 

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

2007年07月11日 星期三 08:05

XiaQ xiaqqaix在gmail.com
星期三 七月 11 08:05:33 HKT 2007

Ö÷ÒªÊÇ¿´Âß¼­½á¹¹
¸úÂ¥ÉÏ˵µÄÒ»Ñù£¬.py == module
¿´ÏÂPythonµÄ¿âÈçºÎ×éÖ¯¾ÍÖªµÀÁË
PythonÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070711/f652d68f/attachment.html 

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

2007年07月11日 星期三 08:06

XiaQ xiaqqaix在gmail.com
星期三 七月 11 08:06:00 HKT 2007

Python*²»*ÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý

ÔÚ07-7-11£¬XiaQ <xiaqqaix在gmail.com> дµÀ£º
>
> Ö÷ÒªÊÇ¿´Âß¼­½á¹¹
> ¸úÂ¥ÉÏ˵µÄÒ»Ñù£¬.py == module
> ¿´ÏÂPythonµÄ¿âÈçºÎ×éÖ¯¾ÍÖªµÀÁË
> PythonÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070711/dc4d385e/attachment.htm 

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

2007年07月11日 星期三 18:33

风向标 vaneoooo在gmail.com
星期三 七月 11 18:33:32 HKT 2007

°®·Åʲô·Åʲô¡£

ÐèҪʲôдʲô£¬±ðÒ»³õѧÉÏÀ´¾Í¸ãÄÇô¶à¼ÏËøÌ××Å£¬ÄÇÊÇ¿ªÊ¼×ÅÊÖÓÐÌõÀíµÄ¿ª·¢Ê±ÒªÀí½âµÄ¶«Î÷¡£
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070711/42c66208/attachment.html 

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

2007年07月11日 星期三 23:35

Xell Zhang xellzhang在gmail.com
星期三 七月 11 23:35:41 HKT 2007

¶ò¡­¡­Õâ¸ö¡­¡­Ö÷ÒªÊÇÎÒдÁËÒ»¸öÅÀ³æ£¬ÏÖÔÚËäÈ»Äܹ¤×÷ÁË£¬µ«ÊÇÎÒ¾õµÃ³ÌÐò½á¹¹²»Ì«ºÃ£¬¿ÉÓÖ²»ÖªµÀÔõôÈÃËüÓÐÌõÀí£¬ËùÒÔÀ§»óÖС­¡­

On 7/11/07, ·çÏò±ê <vaneoooo在gmail.com> wrote:
>
> °®·Åʲô·Åʲô¡£
>
> ÐèҪʲôдʲô£¬±ðÒ»³õѧÉÏÀ´¾Í¸ãÄÇô¶à¼ÏËøÌ××Å£¬ÄÇÊÇ¿ªÊ¼×ÅÊÖÓÐÌõÀíµÄ¿ª·¢Ê±ÒªÀí½âµÄ¶«Î÷¡£
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
Zhang Xiao

Junior engineer, Web development

Ethos Tech.
http://www.ethos.com.cn
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070711/c24c758c/attachment.htm 

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

2007年07月12日 星期四 08:28

Zhou Honglin zhou.honglin在gmail.com
星期四 七月 12 08:28:15 HKT 2007

ÅÀ³æÄêÄêÓÐ,½ñÄêÌرð¶à

On 7/11/07, Xell Zhang <xellzhang在gmail.com> wrote:
>
> ¶ò¡­¡­Õâ¸ö¡­¡­Ö÷ÒªÊÇÎÒдÁËÒ»¸öÅÀ³æ£¬ÏÖÔÚËäÈ»Äܹ¤×÷ÁË£¬µ«ÊÇÎÒ¾õµÃ³ÌÐò½á¹¹²»Ì«ºÃ£¬¿ÉÓÖ²»ÖªµÀÔõôÈÃËüÓÐÌõÀí£¬ËùÒÔÀ§»óÖС­¡­
>
> On 7/11/07, ·çÏò±ê <vaneoooo在gmail.com> wrote:
> >
> > °®·Åʲô·Åʲô¡£
> >
> > ÐèҪʲôдʲô£¬±ðÒ»³õѧÉÏÀ´¾Í¸ãÄÇô¶à¼ÏËøÌ××Å£¬ÄÇÊÇ¿ªÊ¼×ÅÊÖÓÐÌõÀíµÄ¿ª·¢Ê±ÒªÀí½âµÄ¶«Î÷¡£
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
>
> --
> Zhang Xiao
>
> Junior engineer, Web development
>
> Ethos Tech.
> http://www.ethos.com.cn
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070712/6910c24f/attachment.html 

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

2007年07月12日 星期四 12:27

Xell Zhang xellzhang在gmail.com
星期四 七月 12 12:27:11 HKT 2007

àÅ¡­¡­²»ÒªÆ«ÀëÖ÷ÌâµÄ˵£¬ºÙºÙ~ ÓÐûÓбȽϺõÄÅÀ³æÉè¼Æ½á¹¹°¢£¿

On 7/12/07, Zhou Honglin <zhou.honglin在gmail.com> wrote:
>
> ÅÀ³æÄêÄêÓÐ,½ñÄêÌرð¶à
>
> On 7/11/07, Xell Zhang <xellzhang在gmail.com> wrote:
> >
> > ¶ò¡­¡­Õâ¸ö¡­¡­Ö÷ÒªÊÇÎÒдÁËÒ»¸öÅÀ³æ£¬ÏÖÔÚËäÈ»Äܹ¤×÷ÁË£¬µ«ÊÇÎÒ¾õµÃ³ÌÐò½á¹¹²»Ì«ºÃ£¬¿ÉÓÖ²»ÖªµÀÔõôÈÃËüÓÐÌõÀí£¬ËùÒÔÀ§»óÖС­¡­
> >
> > On 7/11/07, ·çÏò±ê < vaneoooo在gmail.com> wrote:
> > >
> > > °®·Åʲô·Åʲô¡£
> > >
> > > ÐèҪʲôдʲô£¬±ðÒ»³õѧÉÏÀ´¾Í¸ãÄÇô¶à¼ÏËøÌ××Å£¬ÄÇÊÇ¿ªÊ¼×ÅÊÖÓÐÌõÀíµÄ¿ª·¢Ê±ÒªÀí½âµÄ¶«Î÷¡£
> > >
> > > _______________________________________________
> > > python-chinese
> > > Post: send python-chinese在lists.python.cn
> > > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > > Unsubscribe: send unsubscribe to
> > > python-chinese-request在lists.python.cn
> > > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> > >
> >
> >
> >
> > --
> > Zhang Xiao
> >
> > Junior engineer, Web development
> >
> > Ethos Tech.
> > http://www.ethos.com.cn
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to
> > python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
Zhang Xiao

Engineer, Web development

Ethos Tech.
http://www.ethos.com.cn
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070712/2765865a/attachment.html 

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

2007年07月16日 星期一 10:35

jessinio smith jessinio在gmail.com
星期一 七月 16 10:35:46 HKT 2007

moduleÀïµÄº¯ÊýºÍÀàµÄº¯Êý£¨·½·¨£©Óе㲻ͬ£ºmoduleÀïµÄº¯Êý¿ÉÒÔÉÙдself²ÎÊý¡£
moduleÀïµÄº¯Êýʵ¼ÊÉϺÍÀàµÄº¯Êý£¨·½·¨£©ÊÇÒ»ÑùµÄ£¬´ó¼Ò¶¼ÊÇobject

On 7/11/07, XiaQ <xiaqqaix在gmail.com> wrote:
>
> Python*²»*ÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý
>
> ÔÚ07-7-11£¬XiaQ <xiaqqaix在gmail.com> дµÀ£º
> >
> > Ö÷ÒªÊÇ¿´Âß¼­½á¹¹
> > ¸úÂ¥ÉÏ˵µÄÒ»Ñù£¬.py == module
> > ¿´ÏÂPythonµÄ¿âÈçºÎ×éÖ¯¾ÍÖªµÀÁË
> > PythonÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý
> >
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070716/4581f689/attachment.html 

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

2007年07月16日 星期一 15:36

Xell Zhang xellzhang在gmail.com
星期一 七月 16 15:36:22 HKT 2007

ÎÒÏÖÔÚÊǾõµÃ°´ÕÕPythonµÄÕâÖÖÉè¼Æ£¬ÎÒÔںܶàʱºò¶¼²»ÐèҪдÀ࣬¶øÊǰѺ¯ÊýÖ±½ÓдÔÚmoduleÀÒòΪºÜ¶àº¯ÊýÆäʵֻÊÇÒ»¸öÌṩһ¸ö·þÎñ£¬²»ÐèÒª³ÉΪÀàµÄ·½·¨£¬»òÕß˵¸üÏñÊÇÀàµÄ¾²Ì¬·½·¨¡£

On 7/16/07, jessinio smith <jessinio在gmail.com> wrote:
>
> moduleÀïµÄº¯ÊýºÍÀàµÄº¯Êý£¨·½·¨£©Óе㲻ͬ£ºmoduleÀïµÄº¯Êý¿ÉÒÔÉÙдself²ÎÊý¡£
> moduleÀïµÄº¯Êýʵ¼ÊÉϺÍÀàµÄº¯Êý£¨·½·¨£©ÊÇÒ»ÑùµÄ£¬´ó¼Ò¶¼ÊÇobject
>
> On 7/11/07, XiaQ <xiaqqaix在gmail.com> wrote:
>
> > Python*²»*ÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý
> >
> > ÔÚ07-7-11£¬XiaQ <xiaqqaix在gmail.com> дµÀ£º
> > >
> > > Ö÷ÒªÊÇ¿´Âß¼­½á¹¹
> > > ¸úÂ¥ÉÏ˵µÄÒ»Ñù£¬.py == module
> > > ¿´ÏÂPythonµÄ¿âÈçºÎ×éÖ¯¾ÍÖªµÀÁË
> > > PythonÏñC#Ö»¿ÉÒÔÓÃclassÀ´×éÖ¯£¬moduleÏÂÒ²¿ÉÒÔÖ±½Ó·Åº¯Êý
> > >
> >
> >
> > _______________________________________________
> > python-chinese
> > Post: send python-chinese在lists.python.cn
> > Subscribe: send subscribe to python-chinese-request在lists.python.cn
> > Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> > Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
>
>
>
> --
> ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
>



-- 
Zhang Xiao

Engineer, Web development

Ethos Tech.
http://www.ethos.com.cn
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070716/8a307337/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号