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
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
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.
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
as the subject
--
http://mail.python.org/mailman/listinfo/python-list