我已经安装了Visual Studio 2015社区和Visual Studio的Python工具。但我无法通过CREATE TABLE CUSTOMER PIZZA ORDER NUMBER(
Last_Name VARCHAR(25) PRIMARY KEY NOT NULL,
First_Name VARCHAR(25) NOT NULL,
Street VARCHAR NULL,
Apartment INTEGER NULL,
City VARCHAR NULL,
State VARCHAR(2) NOT NULL,
Zip_Code INTEGER(5) NOT NULL,
Home_Phone INTEGER(10) NOT NULL,
Mobile_Phone INTEGER(10) NOT NULL,
Other_Phone INTEGER(10) NOT NULL,
QTY_of_Pizzas INTEGER NOT NULL,
Special_Handling_Notes VARCHAR NOT NULL,
Pizza_ID INTEGER NOT NULL,
Pizza_Name VARCHAR NOT NULL,
Pizza_Description VARCHAR NOT NULL,
Pizza_Size VARCHAR NOT NULL,
Pizza_Price INTEGER NOT NULL,
Pizza_Photo_URL VARCHAR NOT NULL,
Pizza_Order_Timestamp INTEGER NOT NULL,
Pizza_Order_ID INTEGER NOT NULL,
);
CREATE TABLE PIZZA TABLE(
Pizza_ID INTEGER NOT NULL PRIMARY KEY,
Pizza_Name VARCHAR NOT NULL,
Pizza_Description VARCHAR NOT NULL,
Pizza_Size VARCHAR NOT NULL,
Pizza_Price INTEGER NOT NULL,
Pizza_Photo_URL VARCHAR NOT NULL,
);
CREATE TABLE CUSTOMER PIZZA TABLE(
Pizza_Order_ID INTEGER PRIMARY KEY NOT NULL,
Pizza_Order_Timestamp INTEGER NOT NULL,
QTY_of_Pizzas INTEGER NOT NULL,
Special_Notes VARCHAR NOT NULL,
Last_Name VARCHAR(25) NOT NULL,
First_Name VARCHAR(25) NOT NULL,
Street VARCHAR NOT NULL,
Apartment VARCHAR NOT NULL,
City VARCHAR NOT NULL,
State VARCHAR(2) NOT NULL,
ZIP INTEGER(5) NOT NULL,
Home_Phone INTEGER(10) NOT NULL,
Mobile_Phone INTEGER(10) NOT NULL,
Other_Phone INTEGER(10) NOT NULL,
Pizza_ID INTEGER NOT NULL,
);
CREATE TABLE PIZZA TABLE(
Pizza_ID INTEGER PRIMARY KEY NOT NULL,
Pizza_Name VARCHAR NOT NULL,
Pizza_Description VARCHAR NOT NULL,
Pizza_Size VARCHAR NOT NULL,
Pizza_Price INTEGER NOT NULL,
Pizza_Photo_URL VARCHAR NOT NULL,
);
CREATE TABLE CUSTOMER TABLE(
Customer_ID INTEGER PRIMARY KEY NOT NULL.
Last_Name VARCHAR NOT NULL,
First_Name VARCHAR NOT NULL,
Street VARCHAR NULL
Apartment INTEGER NULL,
City VARCHAR NULL,
State VARCHAR(2) NOT NULL,
ZIP INTEGER(5) NOT NULL,
Home_Phone INTEGER(10) NOT NULL,
Mobile_Phone INTEGER(10) NOT NULL,
Other_Phone INTEGER(10) NOT NULL,
);
CREATE TABLE PIZZA ORDER TABLE(
Pizza_Order_ID INTEGER PRIMARY KEY NOT NULL,
Pizza_ID INTEGER NOT NULL,
Customer_ID INTEGER NOT NULL,
QTY_of_Pizzas INTEGER NOT NULL,
Special_Notes VARCHAR NOT NULL,
Pizza_Order_Timestamp INTEGER NOT NULL,
);
识别我安装的Google API。
以下是我的导入方式:
pip install google-api-python-client
我的脚本运行但我没有获得自动完成功能。 有没有办法解决这个问题?
答案 0 :(得分:1)
我找到了答案。我所要做的就是将我的import语句改为:
from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
现在自动完成工作。