Python论坛  - 讨论区

标题:[python-chinese] mysqldb 模块提交insert语句后,在mysql query browser中看不到新的记录

2007年09月14日 星期五 10:32

zinicl zinicl在gmail.com
星期五 九月 14 10:32:33 HKT 2007

´úÂëÈçÏ£º
conn = mysqldb.connect(host = sqlname, port = sqlport, db = 'mydb', user =
'root', passwd = 'root')
cursor = conn.cursor()
query = "insert t_test_%04x values('%s', %d, %d, %d, %d, %d, %d, %d)" %
(code, name[2:8], items[0], items[1], items[2], items[3], items[4],
items[5], items[6])
cursor.execute(query)
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/7f011ad8/attachment.htm 

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

2007年09月14日 星期五 10:34

swag_erebus swag_erebus在163.com
星期五 九月 14 10:34:59 HKT 2007

 你没conn.commit()呢...  
在2007-09-14,zinicl <zinicl在gmail.com> 写道:
代码如下:
conn = mysqldb.connect(host = sqlname, port = sqlport, db = 'mydb', user = 'root', passwd = 'root')
cursor = conn.cursor()
query = "insert t_test_%04x values('%s', %d, %d, %d, %d, %d, %d, %d)" % (code, name[2:8], items[0], items[1], items[2], items[3], items[4], items[5], items[6])
cursor.execute(query)
-------------- 涓嬩竴閮ㄥ垎 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/904ecbd3/attachment-0001.html 

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

2007年09月14日 星期五 10:43

zinicl zinicl在gmail.com
星期五 九月 14 10:43:04 HKT 2007

ÄÇÊÇ·ñ¿ÉÒÔÔÚ¶à´ÎexcuteºóÒ»´ÎÐÔcommit?

ÔÚ07-9-14£¬swag_erebus <swag_erebus在163.com> дµÀ£º
>
>
> Äãûconn.commit()ÄØ...
>
>
>
> ÔÚ2007-09-14£¬zinicl <zinicl在gmail.com> дµÀ£º
>
> ´úÂëÈçÏ£º
> conn = mysqldb.connect(host = sqlname, port = sqlport, db = 'mydb', user =
> 'root', passwd = 'root')
> cursor = conn.cursor()
> query = "insert t_test_%04x values('%s', %d, %d, %d, %d, %d, %d, %d)" %
> (code, name[2:8], items[0], items[1], items[2], items[3], items[4],
> items[5], items[6])
> cursor.execute(query)
>
>
>
> ------------------------------
> È« ¹ú Íò Ãû Ö° ³¡ Å® ÐÔ£¬Æë ¾Û ·Ç ³£ ÃÀ Å®£¬¾ª ÑÞ 2 0 0 7
> <http://event.mail.163.com/chanel/click.htm?from=NO_14&domain;=163>
> _______________________________________________
> 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/20070914/cff26ade/attachment.html 

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

2007年09月14日 星期五 11:09

Tian askfor在gmail.com
星期五 九月 14 11:09:20 HKT 2007

¿ÉÒÔ¡£¡£²»È»commit¾Íû´æÔڵıØÒªÁË

On 9/14/07, zinicl <zinicl在gmail.com> wrote:
>
> ÄÇÊÇ·ñ¿ÉÒÔÔÚ¶à´ÎexcuteºóÒ»´ÎÐÔcommit?
>
> ÔÚ07-9-14£¬swag_erebus <swag_erebus在163.com> дµÀ£º
> >
> >
> > Äãûconn.commit()ÄØ...
> >
> >
> >
> > ÔÚ2007-09-14£¬zinicl <zinicl在gmail.com> дµÀ£º
> >
> > ´úÂëÈçÏ£º
> > conn = mysqldb.connect(host = sqlname, port = sqlport, db = 'mydb', user
> > = 'root', passwd = 'root')
> > cursor = conn.cursor()
> > query = "insert t_test_%04x values('%s', %d, %d, %d, %d, %d, %d, %d)" %
> > (code, name[2:8], items[0], items[1], items[2], items[3], items[4],
> > items[5], items[6])
> > cursor.execute (query)
> >
> >
> >
> > ------------------------------
> > È« ¹ú Íò Ãû Ö° ³¡ Å® ÐÔ£¬Æë ¾Û ·Ç ³£ ÃÀ Å®£¬¾ª ÑÞ 2 0 0 7
> > <http://event.mail.163.com/chanel/click.htm?from=NO_14&domain;=163>
> > _______________________________________________
> > 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
>
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/da1d863b/attachment.html 

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

2007年09月14日 星期五 11:14

zinicl zinicl在gmail.com
星期五 九月 14 11:14:19 HKT 2007

лл

ÔÚ07-9-14£¬Tian <askfor在gmail.com> дµÀ£º
>
> ¿ÉÒÔ¡£¡£²»È»commit¾Íû´æÔڵıØÒªÁË
>
> On 9/14/07, zinicl <zinicl在gmail.com> wrote:
>
> > ÄÇÊÇ·ñ¿ÉÒÔÔÚ¶à´ÎexcuteºóÒ»´ÎÐÔcommit?
> >
> > ÔÚ07-9-14£¬swag_erebus <swag_erebus在163.com> дµÀ£º
> > >
> > >
> > > Äãûconn.commit()ÄØ...
> > >
> > >
> > >
> > > ÔÚ2007-09-14£¬zinicl <zinicl在gmail.com> дµÀ£º
> > >
> > > ´úÂëÈçÏ£º
> > > conn = mysqldb.connect(host = sqlname, port = sqlport, db = 'mydb',
> > > user = 'root', passwd = 'root')
> > > cursor = conn.cursor()
> > > query = "insert t_test_%04x values('%s', %d, %d, %d, %d, %d, %d, %d)"
> > > % (code, name[2:8], items[0], items[1], items[2], items[3], items[4],
> > > items[5], items[6])
> > > cursor.execute (query)
> > >
> > >
> > >
> > > ------------------------------
> > >  È« ¹ú Íò Ãû Ö° ³¡ Å® ÐÔ£¬Æë ¾Û ·Ç ³£ ÃÀ Å®£¬¾ª ÑÞ 2 0 0 7
> > > <http://event.mail.163.com/chanel/click.htm?from=NO_14&domain;=163>
> > > _______________________________________________
> > > 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
> >
>
>
> _______________________________________________
> 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/20070914/e0149c03/attachment.htm 

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

2007年09月14日 星期五 17:14

lu_zi lu_zi_2000在163.com
星期五 九月 14 17:14:54 HKT 2007

pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ

 

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/6a9573cc/attachment.html 

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

2007年09月14日 星期五 17:19

limodou limodou在gmail.com
星期五 九月 14 17:19:57 HKT 2007

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
>
>
>
>
> python有没有什么好的对字符串处理的方法,比如象awk那样的
>
python很擅长字符串的处理。至于awk的方式你可以自已写一个类似的框架。

-- 
I like python!
UliPad <>: http://code.google.com/p/ulipad/
My Blog: http://www.donews.net/limodou

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

2007年09月14日 星期五 17:25

lu_zi lu_zi_2000在163.com
星期五 九月 14 17:25:15 HKT 2007

我只是想简单的在python下按照某个关键字进行分词,然后对词进行分析,就这么简单
应该怎么作,多谢指教

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] 代表 limodou
发送时间: 2007年9月14日 17:20
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese]python有没有什么好的对字符串处理的方法,比如象awk
那样的,谢谢

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
>
>
>
>
> python有没有什么好的对字符串处理的方法,比如象awk那样的
>
python很擅长字符串的处理。至于awk的方式你可以自已写一个类似的框架。

-- 
I like python!
UliPad <>: http://code.google.com/p/ulipad/
My Blog: http://www.donews.net/limodou
_______________________________________________
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

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

2007年09月14日 星期五 17:36

Tian askfor在gmail.com
星期五 九月 14 17:36:14 HKT 2007

split?



On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
>
> ÎÒÖ»ÊÇÏë¼òµ¥µÄÔÚpythonÏ°´ÕÕij¸ö¹Ø¼ü×Ö½øÐзִʣ¬È»ºó¶Ô´Ê½øÐзÖÎö£¬¾ÍÕâô¼òµ¥
> Ó¦¸ÃÔõô×÷£¬¶àлָ½Ì
>
> -----ÓʼþÔ­¼þ-----
> ·¢¼þÈË: python-chinese-bounces在lists.python.cn
> [mailto:python-chinese-bounces在lists.python.cn] ´ú±í limodou
> ·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:20
> ÊÕ¼þÈË: python-chinese在lists.python.cn
> Ö÷Ìâ: Re: [python-chinese]pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawk
> ÄÇÑùµÄ,лл
>
> On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
> >
> >
> >
> >
> > pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ
> >
> pythonºÜÉó¤×Ö·û´®µÄ´¦Àí¡£ÖÁÓÚawkµÄ·½Ê½Äã¿ÉÒÔ×ÔÒÑдһ¸öÀàËƵĿò¼Ü¡£
>
> --
> I like python!
> UliPad <>: http://code.google.com/p/ulipad/
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> 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
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/f82d1cf3/attachment.html 

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

2007年09月14日 星期五 17:38

Jiahua Huang jhuangjiahua在gmail.com
星期五 九月 14 17:38:48 HKT 2007

>>> print '我只是关键字想简单的关键字在python下关键字按照某个关键字进行分'.split('关键字')
['我只是', '想简单的', '在python下', '按照某个', '进行分']


在 07-9-14,lu_zi<lu_zi_2000 at 163.com> 写道:
> 我只是想简单的在python下按照某个关键字进行分词

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

2007年09月14日 星期五 17:39

lu_zi lu_zi_2000在163.com
星期五 九月 14 17:39:54 HKT 2007

¶÷£¬²î²»¶à

 

  _____  

·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í Tian
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:36
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈç
ÏóawkÄÇÑùµÄ,лл

 

split?


 

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote: 

ÎÒÖ»ÊÇÏë¼òµ¥µÄÔÚpythonÏ°´ÕÕij¸ö¹Ø¼ü×Ö½øÐзִʣ¬È»ºó¶Ô´Ê½øÐзÖÎö£¬¾ÍÕâô¼òµ¥
Ó¦¸ÃÔõô×÷£¬¶àлָ½Ì

-----ÓʼþÔ­¼þ-----
·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í limodou
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:20
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawk
ÄÇÑùµÄ,лл

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
>
>
> 
>
> pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ
>
pythonºÜÉó¤×Ö·û´®µÄ´¦Àí¡£ÖÁÓÚawkµÄ·½Ê½Äã¿ÉÒÔ×ÔÒÑдһ¸öÀàËƵĿò¼Ü¡£

--
I like python!
UliPad <>: http://code.google.com/p/ulipad/
<http://code.google.com/p/ulipad/> 
My Blog: http://www.donews.net/limodou
_______________________________________________
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>
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 

 

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/45c61708/attachment.htm 

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

2007年09月14日 星期五 17:44

lu_zi lu_zi_2000在163.com
星期五 九月 14 17:44:17 HKT 2007

Èç¹û¹Ø¼ü×ÖÊǶà¸ö×ÖÔõô°ì£¬±ÈÈçÒª°´¿Õ¸ñ»ò»Ø³µ¼üÀ´·Ö´ÊÄØ

 

  _____  

·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í lu_zi
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:40
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: [python-chinese] ´ð¸´: ´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬
±ÈÈçÏóawkÄÇÑùµÄ,лл

 

¶÷£¬²î²»¶à

 

  _____  

·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í Tian
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:36
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈç
ÏóawkÄÇÑùµÄ,лл

 

split?


 

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote: 

ÎÒÖ»ÊÇÏë¼òµ¥µÄÔÚpythonÏ°´ÕÕij¸ö¹Ø¼ü×Ö½øÐзִʣ¬È»ºó¶Ô´Ê½øÐзÖÎö£¬¾ÍÕâô¼òµ¥
Ó¦¸ÃÔõô×÷£¬¶àлָ½Ì

-----ÓʼþÔ­¼þ-----
·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í limodou
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:20
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawk
ÄÇÑùµÄ,лл

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
>
>
> 
>
> pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ
>
pythonºÜÉó¤×Ö·û´®µÄ´¦Àí¡£ÖÁÓÚawkµÄ·½Ê½Äã¿ÉÒÔ×ÔÒÑдһ¸öÀàËƵĿò¼Ü¡£

--
I like python!
UliPad <>: http://code.google.com/p/ulipad/
<http://code.google.com/p/ulipad/> 
My Blog: http://www.donews.net/limodou
_______________________________________________
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>
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 

 

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/eebcdae9/attachment.htm 

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

2007年09月14日 星期五 17:48

Tian askfor在gmail.com
星期五 九月 14 17:48:37 HKT 2007

'\n '
¶à¸öÄã¿ÉÒÔ¿¼ÂÇÓöà´Îsplit Èç¹û¹æÔò¸´ÔÓµã¾ÍÓÃre


On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
>
>  Èç¹û¹Ø¼ü×ÖÊǶà¸ö×ÖÔõô°ì£¬±ÈÈçÒª°´¿Õ¸ñ»ò»Ø³µ¼üÀ´·Ö´ÊÄØ
>
>
>  ------------------------------
>
> *·¢¼þÈË:* python-chinese-bounces在lists.python.cn [mailto:
> python-chinese-bounces在lists.python.cn] *´ú±í *lu_zi
> *·¢ËÍʱ¼ä:* 2007Äê9ÔÂ14ÈÕ 17:40
> *ÊÕ¼þÈË:* python-chinese在lists.python.cn
> *Ö÷Ìâ:* [python-chinese] ´ð¸´: ´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ,лл
>
>
>
> ¶÷£¬²î²»¶à
>
>
>  ------------------------------
>
> *·¢¼þÈË:* python-chinese-bounces在lists.python.cn [mailto:
> python-chinese-bounces在lists.python.cn] *´ú±í *Tian
> *·¢ËÍʱ¼ä:* 2007Äê9ÔÂ14ÈÕ 17:36
> *ÊÕ¼þÈË:* python-chinese在lists.python.cn
> *Ö÷Ìâ:* Re: [python-chinese]´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ,лл
>
>
>
> split?
>
>
>
>
> On 9/14/07, *lu_zi* <lu_zi_2000在163.com> wrote:
>
> ÎÒÖ»ÊÇÏë¼òµ¥µÄÔÚpythonÏ°´ÕÕij¸ö¹Ø¼ü×Ö½øÐзִʣ¬È»ºó¶Ô´Ê½øÐзÖÎö£¬¾ÍÕâô¼òµ¥
> Ó¦¸ÃÔõô×÷£¬¶àлָ½Ì
>
> -----ÓʼþÔ­¼þ-----
> ·¢¼þÈË: python-chinese-bounces在lists.python.cn
> [mailto:python-chinese-bounces在lists.python.cn] ´ú±í limodou
> ·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:20
> ÊÕ¼þÈË: python-chinese在lists.python.cn
> Ö÷Ìâ: Re: [python-chinese]pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawk
> ÄÇÑùµÄ,лл
>
> On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
> >
> >
> >
> >
> > pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ
> >
> pythonºÜÉó¤×Ö·û´®µÄ´¦Àí¡£ÖÁÓÚawkµÄ·½Ê½Äã¿ÉÒÔ×ÔÒÑдһ¸öÀàËƵĿò¼Ü¡£
>
> --
> I like python!
> UliPad <>: http://code.google.com/p/ulipad/
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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/20070914/2e7067f6/attachment.htm 

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

2007年09月14日 星期五 17:51

lu_zi lu_zi_2000在163.com
星期五 九月 14 17:51:30 HKT 2007

ºÃ¶àл

 

  _____  

·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í Tian
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14ÈÕ 17:49
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈç
ÏóawkÄÇÑùµÄ,лл

 

'\n '

¶à¸öÄã¿ÉÒÔ¿¼ÂÇÓöà´Îsplit Èç¹û¹æÔò¸´ÔÓµã¾ÍÓÃre

 

On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote: 

Èç¹û¹Ø¼ü×ÖÊǶà¸ö×ÖÔõô°ì£¬±ÈÈçÒª°´¿Õ¸ñ»ò»Ø³µ¼üÀ´·Ö´ÊÄØ 

 

  _____  

·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í lu_zi
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14 ÈÕ 17:40
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: [python-chinese] ´ð¸´: ´ð¸´ : pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬
±ÈÈçÏóawkÄÇÑùµÄ,лл

 

¶÷£¬²î²»¶à 

 

  _____  

·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto:python-chinese-bounces在lists.python.cn] ´ú±í Tian
·¢ËÍʱ¼ä: 2007Äê9ÔÂ14 ÈÕ 17:36
ÊÕ¼þÈË: python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]´ð¸´: python ÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±È
ÈçÏóawkÄÇÑùµÄ,лл

 

split?


 

On 9/14/07, lu_zi < lu_zi_2000在163.com lu_zi_2000在163.com> > wrote: 

ÎÒÖ»ÊÇÏë¼òµ¥µÄÔÚpythonÏ°´ÕÕij¸ö¹Ø¼ü×Ö½øÐзִʣ¬È»ºó¶Ô´Ê½øÐзÖÎö£¬¾ÍÕâô¼òµ¥
Ó¦¸ÃÔõô×÷£¬¶àлָ½Ì

-----ÓʼþÔ­¼þ -----
·¢¼þÈË: python-chinese-bounces在lists.python.cn
[mailto: python-chinese-bounces在lists.python.cn] ´ú±í limodou
·¢ËÍʱ¼ä : 2007Äê9ÔÂ14ÈÕ 17:20
ÊÕ¼þÈË : python-chinese在lists.python.cn
Ö÷Ìâ: Re: [python-chinese]python ÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawk
ÄÇÑùµÄ,лл

On 9/14/07, lu_zi < lu_zi_2000在163.com lu_zi_2000在163.com> > wrote:
>
>
> 
>
> pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±ÈÈçÏóawkÄÇÑùµÄ
>
pythonºÜÉó¤×Ö·û´®µÄ´¦Àí¡£ÖÁÓÚawk µÄ·½Ê½Äã¿ÉÒÔ×ÔÒÑдһ¸öÀàËƵĿò¼Ü¡£

--
I like python!
UliPad <>: http://code.google.com/p/ulipad/ 
My Blog: http://www.donews.net/limodou
_______________________________________________ 
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>
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
<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

 

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070914/ef6ae280/attachment.html 

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

2007年09月15日 星期六 10:46

jessinio liang jessinio在gmail.com
星期六 九月 15 10:46:23 HKT 2007

¨Ï¥Îre¤è«K§r
-------------- 下一部分 --------------
¤@?HTMLªþ¥ó³Q²¾°£...
URL: http://python.cn/pipermail/python-chinese/attachments/20070915/3004c1ec/attachment.htm 

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

2007年09月16日 星期日 10:18

Jiahua Huang jhuangjiahua在gmail.com
星期日 九月 16 10:18:17 HKT 2007

能不要 re 就不要 re,
re 比字符串方法慢太多了

2007/9/15, jessinio liang <jessinio at gmail.com>:
> 使用re方便呀

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

2007年09月16日 星期日 10:55

cun heise cunheise在hotmail.com
星期日 九月 16 10:55:43 HKT 2007

ÓÃpython µ÷ÓÃawk


>From: "lu_zi" <lu_zi_2000在163.com>
>Reply-To: python-chinese在lists.python.cn
>To: <python-chinese在lists.python.cn>
>Subject: [python-chinese] ´ð¸´: pythonÓÐûÓÐʲôºÃµÄ¶Ô×Ö·û´®´¦ÀíµÄ·½·¨£¬±È
ÈçÏóawkÄÇÑùµÄ,лл
>Date: Fri, 14 Sep 2007 17:25:15 +0800
>
>我只是想简单的在python下按照某个关键字进行分词,然å
Žå¯¹è¯è¿›è¡Œåˆ†æžï¼Œå°±è¿™ä¹ˆç®€å?>应该怎么作,多谢指教
>
>-----邮件原件-----
>发件äº? python-chinese-bounces在lists.python.cn
>[mailto:python-chinese-bounces在lists.python.cn] 代表 limodou
>发送时é—? 2007å¹?æœ?4æ—?17:20
>收件äº? python-chinese在lists.python.cn
>主题: Re: [python-chinese]python有没有什么好的对字符串处理ç
š„方法,比如象awk
>那样çš?谢谢
>
>On 9/14/07, lu_zi <lu_zi_2000在163.com> wrote:
> >
> >
> >
> >
> > python有没有什么好的对字符串处理的方法,比如象awké‚
£æ ·çš?> >
>python很擅长字符串的处理。至于awk的方式你可以自已写一
个类似的框架ã€?>
>--
>I like python!
>UliPad <>: http://code.google.com/p/ulipad/
>My Blog: http://www.donews.net/limodou
>_______________________________________________
>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

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà Live Messenger; 
http://get.live.com/messenger/overview 


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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号