Answer the question
In order to leave comments, you need to log in
How to solve error in Python 2.7 tuple?
Friends, help me figure it out! Refuses to execute the following code:
s = {
'param': ( (01,09,2005), (u'other') )
}
File "C:/.../test.py", line 130
'param': ( (01,09,2005), (u'other') )
^
SyntaxError: invalid token
Answer the question
In order to leave comments, you need to log in
Because this is an octal number that starts with 0 in Python, and there are no 8 and 9 in the octal number system.
First link in google stackoverflow.com/questions/336181/python-invalid-token
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question