cannot assign to 'self' 2017-03-07 本文已影响64人 pyboy 遇到这个问题时很郁闷,再网上查过之后,发现init方法特别之处 把方法名initport改为initPort就解决了。