为什么我在以下代码中收到SyntaxError
?
File "<ipython-input-1-7ae98456e846>", line 23
elif o[0]=='-t':
^
SyntaxError: invalid syntax
Options = 'h:u:d:e:n:p:o:i:z:a:t'
opts = getopt.getopt(sys.argv[1:], Options)[0]
for o in opts:
if o[0] == '-n':
Name = o[1]
elif o[0] == '-o':
Organization = o[1]
elif o[0] == '-h':
ApigeeHost = o[1]
elif o[0] == '-d':
Directory = o[1]
elif o[0] == '-e':
Environment = o[1]
elif o[0] == '-p':
BasePath = o[1]
elif o[0] == '-u':
UserPW = o[1]
elif o[0] == '-z':
ZipFile = o[1]
elif o[0]=='-a':
ApiEnvUrl=o[1]
elif o[0]=='-t':
TargetApiEnvUrl=o[1]
elif o[0]=='-i':
ShouldDeploy=True