Re: no mistake but i didnt get what i want (with python module pymssql send information to the mssql)

2008-10-17 Thread gdyren
On 10月17日, 下午6时41分, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > the code is below: > > import pymssql > > conn = pymssql.connect(host = "121.198.126.233",user = "",password > > = "",database = "test") > > print "connecting success" > > cursor = conn.cursor() > > cu

Re: no mistake but i didnt get what i want (with python module pymssql send information to the mssql)

2008-10-17 Thread gdyren
On 10月17日, 下午6时41分, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > the code is below: > > import pymssql > > conn = pymssql.connect(host = "121.198.126.233",user = "",password > > = "",database = "test") > > print "connecting success" > > cursor = conn.cursor() > > cu

no mistake but i didnt get what i want (with python module pymssql send information to the mssql)

2008-10-17 Thread gdyren
the code is below: import pymssql conn = pymssql.connect(host = "121.198.126.233",user = "",password = "",database = "test") print "connecting success" cursor = conn.cursor() cursor.execute("insert into bbs_test values(%s,%s,%s,%s,%s)", ("1","nju","9:13","ustc","test")) cursor.close() conn.

Re: how to support chinese in dos window

2008-10-15 Thread gdyren
On 10月16日, 上午10时18分, [EMAIL PROTECTED] wrote: > Create a new py named test.py,the content is "print "中"" > now in dos window python test.py > return "SyntaxError: Non-ASCII character '\xd6' in file test.py on > line 1, but no encodi > ng declared; seehttp://www.python.org/peps/pep-0263.htmlfor deta

like using python

2008-10-15 Thread gdyren
as the subject -- http://mail.python.org/mailman/listinfo/python-list