Recently I learn a little something new, tortured simply miserable various pit:
background:
I was looking at the code book learning, with python2.7 version of the language used to write the book, and I was used python3.6 written.
For this error, syntax differences also divide it. Because of python2.7 can really perform without error.
Error codes:
Error contents:
Is one such error, a variety of solutions Baidu, in fact, did not find the fly, eventually solved the patchwork of it
it's actually really easy.
The code should be resolved:
At first glance, nothing changes, it is not true, in which the " () " to " [] " and then miraculously normal, not being given. Report this wrong there may be other reasons I am here is this is the case. for reference only. OK, so be it