2007年04月17日 星期二 13:31
ʲô¹¤¾ßÄܼ°Ê±·¢ÏÖ¶ÔÆë»ò±äÁ¿Æ´´íµÈÓï·¨´íÎó£¿ ÏÈлÁË¡£ -- Best Regrads, DanielSong -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/9b735cbc/attachment.html
2007年04月17日 星期二 13:36
ÔÙ¼ÓÒ»¾ä£¬ÓÃpythonÈçºÎÅжϣ¬µ±Ç°ÍøÂçÊDz»ÊÇͨµÄ£¿ wang_zheng_yong 2007-04-17 ·¢¼þÈË£º danielsong ·¢ËÍʱ¼ä£º 2007-04-17 13:31:39 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ [python-chinese] ÇëÎÊ´ó¼ÒÔÚlinux ÏÂÓÃʲôÀ´¶Ôpython³ÌÐò½øÐо²Ì¬Óï·¨¼ì²é£¿ ʲô¹¤¾ßÄܼ°Ê±·¢ÏÖ¶ÔÆë»ò±äÁ¿Æ´´íµÈÓï·¨´íÎó£¿ ÏÈлÁË¡£ -- Best Regrads, DanielSong -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/9207f0c6/attachment.htm
2007年04月17日 星期二 13:40
python.vim http://www.vim.org/scripts/script.php?script_id=790 On 4/17/07, danielsong <sjtusongyi在gmail.com> wrote: > 什么工具能及时发现对齐或变量拼错等语法错误? > 先谢了。 > > -- > Best Regrads, > DanielSong > _______________________________________________ > 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 > -- In doG We Trust
2007年04月17日 星期二 13:53
Pylint Sent from my BlackBerry® wireless handheld -----Original Message----- From: hutuworm <hutuworm在gmail.com> Date: Tue, 17 Apr 2007 13:40:11 To:python-chinese在lists.python.cn Subject: Re: [python-chinese] 请问大家在linux 下用什么来 对python程序进行静态语法检查? python.vim http://www.vim.org/scripts/script.php?script_id=790 On 4/17/07, danielsong <sjtusongyi在gmail.com> wrote: > 什么工具能及时发现对齐或变量拼错等语法错误? > 先谢了。 > > -- > Best Regrads, > DanielSong > _______________________________________________ > 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 > -- In doG We Trust _______________________________________________ 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
2007年04月17日 星期二 14:01
hutuworm ÄúºÃ£¬ÄÜ·ñ¸ø³öÔõô°²×°ºÍʹÓÃÀý×Ó£¿ ÎÒ°ÑËü¿½±´/usr/share/vim/vim63/plugin/£¬Ëæ±ã¸ÄÁ˸öÎļþ£¬ËƺõûÓÐʲôЧ¹û? 2007/4/17, hutuworm <hutuworm在gmail.com>: > > python.vim > http://www.vim.org/scripts/script.php?script_id=790 > > On 4/17/07, danielsong <sjtusongyi在gmail.com> wrote: > > ʲô¹¤¾ßÄܼ°Ê±·¢ÏÖ¶ÔÆë»ò±äÁ¿Æ´´íµÈÓï·¨´íÎó£¿ > > ÏÈлÁË¡£ > > > > -- > > Best Regrads, > > DanielSong > > _______________________________________________ > > 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 > > > > > -- > In doG We Trust > _______________________________________________ > 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 -- Best Regrads, DanielSong -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/8ea3681b/attachment.html
2007年04月17日 星期二 14:13
On 17/04/07, danielsong <sjtusongyi at gmail.com> wrote: > hutuworm 您好,能否给出怎么安装和使用例子? > 我把它拷贝/usr/share/vim/vim63/plugin/,随便改了个文件,似乎没有什么效果? install details Place python.vim file in ~/.vim/syntax/ folder.
2007年04月17日 星期二 16:56
ÊDz»ÊÇÒªtokenÄ£¿éÄØ£¿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/a3ece132/attachment.htm
2007年04月17日 星期二 17:07
import socket print socket.gethostbyname(socket.gethostname()) On 4/17/07, jessinio smith <jessinio at gmail.com> wrote: > > 是不是要token模块呢? > > _______________________________________________ > 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://python.cn/pipermail/python-chinese/attachments/20070417/ae964cc2/attachment.html
2007年04月17日 星期二 17:09
Hi All, ÓÐÈËÓÃpychartdir×ö¹ýͼ·ñ? дÁ˸öº¯Êý×öbarchart,Ñ»·µ÷Èëdata,ͼƬÉú³ÉûÎÊÌâ,µ«Êý¾ÝÈ´Ö»±£ÁôµÚÒ»´ÎµÄÊý¾Ý,print ÿ´Îµ÷ÈëµÄÊý¾ÝÈ´ÏÔʾÕýÈ·µÄ,²»ÖªÄÄÀï³öÎÊÌâµÄ@@ Çë½Ì! ........... def final(data0,data1,data2,data3): print data0,data1,data2,data3 #---Ok! ÿ´Îdata ÏÔʾÕýÈ· c.addTitle("%s FBC Chart " %(fbc_bin).upper(), "verdana.ttf", 14, 0xffffff).setBackground(0x804020) #--ok! layer.addDataSet(data0, 0xaaee77,"0bits") #--??Ö»¼Í¼µÚÒ»´ÎµÄdata, why? layer.addDataSet(data1, 0xddcc22,"10its") #--??Ö»¼Í¼µÚÒ»´ÎµÄdata,why? layer.addDataSet(data2, 0xffbb33,"100bits") #--??Ö»¼Í¼µÚÒ»´ÎµÄdata,why? layer.addDataSet(data3, 0x22aa55,">100bits") #--??Ö»¼Í¼µÚÒ»´ÎµÄdata,why? c.makeChart("%s.png" %fbc_bin) #ok! ........... -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/d906e78c/attachment.htm
2007年04月17日 星期二 17:22
如何得到当前机器的公网IP呢? 发件人: python-chinese-bounces at lists.python.cn [mailto:python-chinese-bounces at lists.python.cn] 代表 尹祥龙 发送时间: 2007年4月17日 17:07 收件人: python-chinese at lists.python.cn 主题: Re: [python-chinese] python 中如何得到当前机子的 ip 地址 import socket print socket.gethostbyname(socket.gethostname()) On 4/17/07, jessinio smith <jessinio at gmail.com> wrote: 是不是要token模块呢? _______________________________________________ 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://python.cn/pipermail/python-chinese/attachments/20070417/4bf421ba/attachment.html
2007年04月17日 星期二 18:31
在07-4-17,尹祥龙 <yinxianglong at gmail.com> 写道: > import socket > print socket.gethostbyname(socket.gethostname()) > linux下大多得到的是127.0.0.1 用ifconfig扣出来,或者 http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/439094 判断通不通..测试访问个网站看看 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/ea990750/attachment.html
2007年04月17日 星期二 20:08
抓 http://www.dnsstuff.com/ 的Your IP部分 On 4/17/07, jason <haoyu在csdn.net> wrote: > > > > > 如何得到当前机器的公网IP呢? > > > > > 发件人: python-chinese-bounces在lists.python.cn > [mailto:python-chinese-bounces在lists.python.cn] 代表 尹祥龙 > 发送时间: 2007年4月17日 17:07 > 收件人: python-chinese在lists.python.cn > 主题: Re: [python-chinese] python 中如何得到当前机子的 ip 地址 > > > > > > import socket > > > print socket.gethostbyname(socket.gethostname()) > > > > > > On 4/17/07, jessinio smith <jessinio在gmail.com> wrote: > > 是不是要token模块呢? > > _______________________________________________ > 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 > -- In doG We Trust
2007年04月17日 星期二 22:41
在07-4-17,hutuworm <hutuworm at gmail.com> 写道: > > 抓 http://www.dnsstuff.com/ 的Your IP部分 > > > > > 这么说,直接获取http://www.6rooms.com/tellip.php 不是更简单 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/1a3476c3/attachment.htm
2007年04月17日 星期二 22:53
ÕÐÊÇÔ½À´Ô½²îÁË£¡ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070417/cf544545/attachment.htm
2007年04月18日 星期三 11:52
import socket >>> print socket.gethostbyname_ex(socket.gethostname()) ('rodin', [], ['192.168.0.199', '221.221.163.139']) >>> print socket.getaddrinfo(socket.gethostname(),80) [(2, 0, 0, '', ('192.168.0.199', 80)), (2, 0, 0, '', ('221.221.163.139', 80))] 在 07-4-17,jessinio smith<jessinio在gmail.com> 写道: > 招是越来越差了! > _______________________________________________ > 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 >
2007年04月18日 星期三 16:15
import socket def GetIPAddresses(): """获取本机的 IP 地址。 @rtype: List of Strings @return: 返回本机绑定的所有 IP 地址。 如果没有检测到 IP 地址,返回 ["127.0.0.1"]。 请注意返回值总是一个列表,即使本机只绑定了一个 IP 地址时也是如此。 """ addrInfos = socket.getaddrinfo(socket.gethostname(), None) IPAddresses = [] for addrInfo in addrInfos: IPAddresses.append(addrInfo[4][0]) if IPAddresses == []: IPAddresses.append("127.0.0.1") return IPAddresses 2007/4/18, Rodin <schludern在gmail.com>: > import socket > > >>> print socket.gethostbyname_ex(socket.gethostname()) > ('rodin', [], ['192.168.0.199', '221.221.163.139']) > > >>> print socket.getaddrinfo(socket.gethostname(),80) > [(2, 0, 0, '', ('192.168.0.199', 80)), (2, 0, 0, '', ('221.221.163.139', 80))] > > 在 07-4-17,jessinio smith<jessinio在gmail.com> 写道: > > 招是越来越差了! > > _______________________________________________ > > 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
Zeuux © 2025
京ICP备05028076号