Common problems for beginners in python

1. How to switch python version in pycharm

Python call super() initialization error "TypeError: super() takes at least 1 argument"
solution . Change python2.7 to python3
and switch python version in pycharm

2. Not written in python;

3.python: It’s important not to forget to write

4. No encoding format is set

Python SyntaxError: Non-ASCII character'\xe6' in file print date.py on line 1, but no encoding declared;
add link description

5. String processing

Official document

Guess you like

Origin blog.csdn.net/joey_ro/article/details/108955761