Summon up the courage to upgrade our Python from 2.7 to 3.5 today. I'm using pycharm development tools. The upgrade process encounters some problems under the summary:
1. Right-click the project: Locate the Project interpreter option on the left, and configure the development environment 3.5.
2. Original: print ' Hello ' after upgrade to modify: print (' Hello ')
3. Original print ' Hello '. Decode (' Utf-8 ') post-upgrade direct print (' Hello ')
4. Original except Exception err: except Exception as err after upgrade:
5. Used to err.errormsg upgrade after the use of errormsg attributes.
6. Remove <>, use! = All
7. Original import configparser after upgrade to pour configparser5 package, after import configparser note case
8.xrange () renamed to Range ()
The 9.long type was canceled with only int type
10.raw_input renamed as input
Python upgrading from 2.7 to 3.5 requires a major issue