0
내가 파이썬 : 하나 기다리고 있었다 : <NEWLINE>
# -*- 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 -these-python-scripts-giving-syntax-errors) – oefe