Migrate from python 2.7 to 3.10

 

 


[1]

print "..." 要改成 print("...")

 


[2]

In Py3

ModuleNotFoundError: No module named 'ConfigParser'

In python2 as ConfigParser but in python3 as configparser

 


[3] python byte object

 

In Python 2

both str and bytes are the same typeByte objects

In Python 3

Byte objects are “sequence of bytes” and similar to “unicode” objects from Python 2.

Strings are a sequence of characters.

 


 

 

 

 

Creative Commons license icon Creative Commons license icon