sqlite connect 在eclipse 我ctrl的时候报错

The definition was found at: F:\xampp\Python27\DLLs\_sqlite3.pyd
(which cannot be opened because it is a compiled extension)

最后发现一场笑话

'''
Created on 2013-3-27

@author: Administrator
'''

import sqlite3 as sqlite
con = sqlite.connect('caiji.db')
cu = con.cursor()
#cu.execute('''CREATE TABLE user(uid varchar(40),username varchar(40))''')
cu.execute('''insert into user(uid,username)values(1,'username2')''')

cu.execute('''select * from user''')
print cu.fetchall()

con.commit()

其实那个错误,不用管,这么用就对了,当时我像个疯子,一定要整出来,搞了半天才发现一点事情都没有

posted on 2013-03-27 23:34  网宗  阅读(452)  评论(0编辑  收藏  举报

糗乐网-糗事|乐事|天下事