Python论坛  - 讨论区

标题:[python-chinese] python 联接 mysql 用什么?

2006年06月27日 星期二 10:16

netkiller openunix at 163.com
Tue Jun 27 10:16:42 HKT 2006

Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2959 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20060627/bceef53d/smime.bin

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

2006年06月27日 星期二 10:22

limodou limodou at gmail.com
Tue Jun 27 10:22:00 HKT 2006

On 6/27/06, netkiller <openunix at 163.com> wrote:
>
>
> 下面这个文档省.而且有点简陋
>
> http://sourceforge.net/docman/display_doc.php?docid=32071&group;_id=22307#mysqldb

有mysql的python绑定包啊。

-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

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

2006年06月27日 星期二 12:20

王 嘉楠 wjn1982621 at hotmail.com
Tue Jun 27 12:20:57 HKT 2006

小弟新学习emacs中,在使用中文的时候,设置编码后可以正确输入,
但拷贝和打开的中文将会是乱码,使用mule-cus会是正常的,我按下面
的方法加载了他,这些问题解决了,但是加载的非常慢,
(add-to-list 'load-path "/opt/mule/")
(require 'mucs-comp)
而且.emacs后面的配置将加载不了, .py 也不会启动python-mode我是下载的mule-cus
,
我不太清楚有什么办法可以解决,比如说安装之类的,而不是这种加载的,环境是slk
的,
不是ubuntu可以apt-get的,swaret 和slapt都找不到这个mule,找到也不会是自动安
装。
不懂emacs的elc之类的安装。还忘大家能不吝赐教,非常感谢

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  


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

2006年06月27日 星期二 12:43

jetlin jetlin at sohu-rd.com
Tue Jun 27 12:43:39 HKT 2006

我想把taobao里面商品的图片取出来,看了页面的源码,发现它使用了一个flash来显示图片,在object中传递一个字符串给这个swf,就是标成红色的部分,
不过它把这个部分进行了加密处理,那位仁兄可以解开这个加密啊?多谢
看起来比较像base64进行encode的。

http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
  http://pics.taobao.com/2k6/sys/swf/view_pic.swf" />
  
   
  http://pics.taobao.com/2k6/sys/swf/view_pic.swf" quality="high" 
   FlashVars="pURL=Wx0GGlFDXA1VVVRXWx0SCwkNGVxbVl8cVllcRgcaBwMSAF1QHABFWUZVWV1DXV0OAhxRDwFbRwgNWhZTXgNQBkReF11SWEVKW18AAFYLB1gRXzRcQlQABgBtBUcZFAw%3D&pCode;=MDFFRjRDRUNGNUQ1NDZCMg%3D%3D"
   pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="500">

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060627/802d1dd2/attachment.html

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

2006年06月27日 星期二 21:08

lihui lihuimail at gmail.com
Tue Jun 27 21:08:24 HKT 2006

给你段加密程序,自己做一下
def get_key():
    return "3irjklsd8432uisdklvr892348"


def get_encode_image(v):
    key=get_key()
    Register_1_=0
    Register_2_=0
    Register_3_=v
    var2=''
    for Register_1_ in range(len(Register_3_)):
        var2+=chr(ord(Register_3_[Register_1_]) ^ ord(key[Register_2_]))
        Register_2_+=1
        if Register_2_>=len(key):
            Register_2_=0
    var2=var2.encode('base64').replace('\n','')
    var2=urllib.quote(var2)
    return var2


在06-6-27,jetlin <jetlin at sohu-rd.com> 写道:
>
>
> 我想把taobao里面商品的图片取出来,看了页面的源码,发现它使用了一个flash来显示图片,在object中传递一个字符串给这个swf,就是标成红色的部分,
> 不过它把这个部分进行了加密处理,那位仁兄可以解开这个加密啊?多谢
> 看起来比较像base64进行encode的。
>
> > http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
> width="100%" height="100%">
>   > http://pics.taobao.com/2k6/sys/swf/view_pic.swf" />
>   
>   > value="pURL=Wx0GGlFDXA1VVVRXWx0SCwkNGVxbVl8cVllcRgcaBwMSAF1QHABFWUZVWV1DXV0OAhxRDwFbRwgNWhZTXgNQBkReF11SWEVKW18AAFYLB1gRXzRcQlQABgBtBUcZFAw%3D&pCode;=MDFFRjRDRUNGNUQ1NDZCMg%3D%3D">
>   http://pics.taobao.com/2k6/sys/swf/view_pic.swf"
> quality="high"
>
>  FlashVars="pURL=Wx0GGlFDXA1VVVRXWx0SCwkNGVxbVl8cVllcRgcaBwMSAF1QHABFWUZVWV1DXV0OAhxRDwFbRwgNWhZTXgNQBkReF11SWEVKW18AAFYLB1gRXzRcQlQABgBtBUcZFAw%3D&pCode;=MDFFRjRDRUNGNUQ1NDZCMg%3D%3D"
>    pluginspage="http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash" width="100%" height="500">
> 
>
> _______________________________________________
> 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
>
>


-- 
my gmail:lihuimail(at)gmail.com
WukooPy:
http://wiki.woodpecker.org.cn/moin/WukooPy
http://groups-beta.google.com/group/python-wukoopy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060627/e5d458b5/attachment.htm

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

2006年06月27日 星期二 21:21

谢小漫 cat at ewyu.com
Tue Jun 27 21:21:32 HKT 2006

到浏览器的临时文件夹里边看看。。。

在06-6-27,lihui <lihuimail at gmail.com> 写道:
>
> 给你段加密程序,自己做一下
> def get_key():
>     return "3irjklsd8432uisdklvr892348"
>
>
> def get_encode_image(v):
>     key=get_key()
>     Register_1_=0
>     Register_2_=0
>     Register_3_=v
>     var2=''
>     for Register_1_ in range(len(Register_3_)):
>         var2+=chr(ord(Register_3_[Register_1_]) ^ ord(key[Register_2_]))
>         Register_2_+=1
>         if Register_2_>=len(key):
>             Register_2_=0
>     var2=var2.encode('base64').replace('\n','')
>     var2=urllib.quote(var2)
>     return var2
>
>
> 在06-6-27,jetlin < jetlin at sohu-rd.com> 写道:
> >
> >
> > 我想把taobao里面商品的图片取出来,看了页面的源码,发现它使用了一个flash来显示图片,在object中传递一个字符串给这个swf,就是标成红色的部分,
> > 不过它把这个部分进行了加密处理,那位仁兄可以解开这个加密啊?多谢
> > 看起来比较像base64进行encode的。
> >
> > > > http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
> > width="100%" height="100%">
> >   > > http://pics.taobao.com/2k6/sys/swf/view_pic.swf " />
> >   
> >   > > value="pURL=Wx0GGlFDXA1VVVRXWx0SCwkNGVxbVl8cVllcRgcaBwMSAF1QHABFWUZVWV1DXV0OAhxRDwFbRwgNWhZTXgNQBkReF11SWEVKW18AAFYLB1gRXzRcQlQABgBtBUcZFAw%3D&pCode;=MDFFRjRDRUNGNUQ1NDZCMg%3D%3D">
> >   http://pics.taobao.com/2k6/sys/swf/view_pic.swf "
> > quality="high"
> >
> >  FlashVars="pURL=Wx0GGlFDXA1VVVRXWx0SCwkNGVxbVl8cVllcRgcaBwMSAF1QHABFWUZVWV1DXV0OAhxRDwFbRwgNWhZTXgNQBkReF11SWEVKW18AAFYLB1gRXzRcQlQABgBtBUcZFAw%3D&pCode;=MDFFRjRDRUNGNUQ1NDZCMg%3D%3D"
> >    pluginspage="http://www.macromedia.com/go/getflashplayer "
> > type="application/x-shockwave-flash" width="100%" height="500">
> > 
> >
> > _______________________________________________
> > 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
> >
> >
>
>
> --
> my gmail:lihuimail(at)gmail.com
> WukooPy:
> http://wiki.woodpecker.org.cn/moin/WukooPy
> http://groups-beta.google.com/group/python-wukoopy
>
>
> _______________________________________________
> 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://www.ewyu.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060627/2c0d44f1/attachment-0001.htm

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

2006年06月28日 星期三 18:39

jetlin jetlin at sohu-rd.com
Wed Jun 28 18:39:03 HKT 2006

thx.谢谢仁兄,这个加密很简单,轻松搞定
拜一个!
  ----- Original Message ----- 
  From: lihui 
  To: python-chinese at lists.python.cn 
  Sent: Tuesday, June 27, 2006 9:08 PM
  Subject: Re: [python-chinese] 那位能帮忙解密下面的字符串


  给你段加密程序,自己做一下
  def get_key():
      return "3irjklsd8432uisdklvr892348"


  def get_encode_image(v):
      key=get_key()
      Register_1_=0
      Register_2_=0
      Register_3_=v
      var2=''
      for Register_1_ in range(len(Register_3_)):
          var2+=chr(ord(Register_3_[Register_1_]) ^ ord(key[Register_2_]))
          Register_2_+=1
          if Register_2_>=len(key):
              Register_2_=0
      var2=var2.encode('base64').replace('\n','')
      var2=urllib.quote(var2)
      return var2



  在06-6-27,jetlin < jetlin at sohu-rd.com> 写道:
    我想把taobao里面商品的图片取出来,看了页面的源码,发现它使用了一个flash来显示图片,在object中传递一个字符串给这个swf,就是标成红色的部分,
    不过它把这个部分进行了加密处理,那位仁兄可以解开这个加密啊?多谢
    看起来比较像base64进行encode的。

    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100%" height="100%">
      http://pics.taobao.com/2k6/sys/swf/view_pic.swf " />
      
       
      http://pics.taobao.com/2k6/sys/swf/view_pic.swf " quality="high" 
       FlashVars="pURL=Wx0GGlFDXA1VVVRXWx0SCwkNGVxbVl8cVllcRgcaBwMSAF1QHABFWUZVWV1DXV0OAhxRDwFbRwgNWhZTXgNQBkReF11SWEVKW18AAFYLB1gRXzRcQlQABgBtBUcZFAw%3D&pCode;=MDFFRjRDRUNGNUQ1NDZCMg%3D%3D"
       pluginspage="http://www.macromedia.com/go/getflashplayer " type="application/x-shockwave-flash" width="100%" height="500">
    

    _______________________________________________
    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





  -- 
  my gmail:lihuimail(at)gmail.com
  WukooPy:
  http://wiki.woodpecker.org.cn/moin/WukooPy 
  http://groups-beta.google.com/group/python-wukoopy



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


  _______________________________________________
  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/20060628/5d51812f/attachment.html

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

2006年06月29日 星期四 21:50

FireBird ygonic at gmail.com
Thu Jun 29 21:50:06 HKT 2006

可以用pymssql

在 06-6-27,limodou<limodou at gmail.com> 写道:
> On 6/27/06, netkiller <openunix at 163.com> wrote:
> >
> >
> > 下面这个文档省.而且有点简陋
> >
> > http://sourceforge.net/docman/display_doc.php?docid=32071&group;_id=22307#mysqldb
>
> 有mysql的python绑定包啊。
>
> --
> I like python!
> My Blog: http://www.donews.net/limodou
> My Django Site: http://www.djangocn.org
> NewEdit Maillist: http://groups.google.com/group/NewEdit
>
> _______________________________________________
> 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年06月29日 星期四 21:58

Guorui Ji jiguorui at gmail.com
Thu Jun 29 21:58:32 HKT 2006

http://sourceforge.net/projects/mysql-python
这里


On 6/29/06, FireBird <ygonic at gmail.com> wrote:
>
> 可以用pymssql
>
> 在 06-6-27,limodou<limodou at gmail.com> 写道:
> > On 6/27/06, netkiller <openunix at 163.com> wrote:
> > >
> > >
> > > 下面这个文档省.而且有点简陋
> > >
> > >
> http://sourceforge.net/docman/display_doc.php?docid=32071&group;_id=22307#mysqldb
> >
> > 有mysql的python绑定包啊。
> >
> > --
> > I like python!
> > My Blog: http://www.donews.net/limodou
> > My Django Site: http://www.djangocn.org
> > NewEdit Maillist: http://groups.google.com/group/NewEdit
> >
> > _______________________________________________
> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060629/6338e018/attachment-0001.htm

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

2006年06月30日 星期五 06:12

limodou limodou at gmail.com
Fri Jun 30 06:12:12 HKT 2006

On 6/29/06, FireBird <ygonic at gmail.com> wrote:
> 可以用pymssql
>
人家要的是mysql不是mssql呀。


-- 
I like python!
My Blog: http://www.donews.net/limodou
My Django Site: http://www.djangocn.org
NewEdit Maillist: http://groups.google.com/group/NewEdit

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

2006年06月30日 星期五 09:13

netkiller openunix at 163.com
Fri Jun 30 09:13:36 HKT 2006

我用的就是这人..他的manual就一页..很多例子不怎么用..他也没写.
  ----- Original Message ----- 
  From: Guorui Ji 
  To: python-chinese at lists.python.cn 
  Sent: Thursday, June 29, 2006 9:58 PM
  Subject: Re: [python-chinese] python 联接 mysql 用什么?


  http://sourceforge.net/projects/mysql-python
  这里

   
  On 6/29/06, FireBird <ygonic at gmail.com> wrote: 
    可以用pymssql

    在 06-6-27,limodou<limodou at gmail.com> 写道:
    > On 6/27/06, netkiller <openunix at 163.com> wrote:
    > >
    > >
    > > 下面这个文档省.而且有点简陋
    > >
    > > http://sourceforge.net/docman/display_doc.php?docid=32071&group;_id=22307#mysqldb
    >
    > 有mysql的python绑定包啊。
    >
    > --
    > I like python!
    > My Blog: http://www.donews.net/limodou
    > My Django Site: http://www.djangocn.org
    > NewEdit Maillist: http://groups.google.com/group/NewEdit 
    >
    > _______________________________________________
    > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060630/51b0421c/attachment.html

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

2006年06月30日 星期五 11:20

Wu Changbin chbin.w at gmail.com
Fri Jun 30 11:20:08 HKT 2006

一个叫做MySQLdb的包,sf上有,非常好用 。

在06-6-27,netkiller <openunix at 163.com> 写道:
>
>  下面这个文档省.而且有点简陋
>
>
> http://sourceforge.net/docman/display_doc.php?docid=32071&group;_id=22307#mysqldb
>
> _______________________________________________
> 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
>
>
>


-- 
武长斌
chbin.w at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060630/0a3cfabf/attachment.html

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

2006年06月30日 星期五 13:22

netkiller openunix at 163.com
Fri Jun 30 13:22:05 HKT 2006

我用的就是这个..手册就一页..不详细.
  ----- Original Message ----- 
  From: Wu Changbin 
  To: python-chinese at lists.python.cn 
  Sent: Friday, June 30, 2006 11:20 AM
  Subject: Re: [python-chinese] python 联接 mysql 用什么?


  一个叫做MySQLdb的包,sf上有,非常好用 。


  在06-6-27,netkiller <openunix at 163.com> 写道: 
    下面这个文档省.而且有点简陋

    http://sourceforge.net/docman/display_doc.php?docid=32071&group;_id=22307#mysqldb 

    _______________________________________________
    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






  -- 
  武长斌
  chbin.w at gmail.com 


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


  _______________________________________________
  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/20060630/663a68b7/attachment.htm

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

2006年06月30日 星期五 17:56

Andelf andelf at gmail.com
Fri Jun 30 17:56:32 HKT 2006

>
>  那就装个sqlobject 用sqlobject调用MySQLdb
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060630/4ae69c83/attachment.htm

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号