0
# -*- coding: utf-8 -*-
def ANdata(key, id, format, nR, start) :
queryUrl = 'http://developer.website.com/api/v4/type/news?api_key=' + key + '&id=' + id + '&format=' + format + '&results=' + nR + '&start=' + start
print "test"
錯誤是:
Encountered "\"test\"" at line 6, column 11. Was expecting one of: <NEWLINE> ... "(" ... "[" ... ";" ... "," ... "." ... "+" ... "-" ... "*" ... "/" ... "//" ... "<<" ...
">>" ... "%" ... "^" ... "|" ... "&" ... "=" ... ">" ... "<" ... "==" ... "<=" ... ">=" ... "!=" ... "+=" ... "-=" ... "*=" ... "/=" ... "//=" ... "%=" ... "&=" ...
"|=" ... "^=" ... "<<=" ... ">>=" ... "**=" ... "or" ... "and" ... "not" ... "is" ... "in" ... "if" ... ";" ... "," ...
你看到一個問題嗎?
什麼是Python版本? – interjay
我正在使用Pydev,src文件夾是:/usr/bin/python3.2mu – 4m1nh4j1
可能的重複[爲什麼這些Python腳本給出語法錯誤?](http://stackoverflow.com/questions/4059429/why-are - 這些,Python的腳本,讓-語法錯誤) – oefe