- 帖子
- 8
- 精华
- 0
- 积分
- 34
- 阅读权限
- 10
- 注册时间
- 2016-12-24
- 最后登录
- 2017-1-14
|
crossin先生 发表于 2016-12-29 23:10
提供完整截图
不是在代码里写 sqlite3 MovieSite.db
上传不了本地截图,复制过来了:
C:\Users\USER>sqlite3 MovieSite.db
'sqlite3' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\USER>python
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> sqlite3 MovieSite.db
File "<stdin>", line 1
sqlite3 MovieSite.db
^
SyntaxError: invalid syntax
我运行下面的命令没问题:
>>> import sqlite3
>>> conn = sqlite3.connect('test.db')
>>> cursor = conn.cursor()
>>> cursor.execute('create table user (id var
|
|