歡迎選擇我的課程,讓我們一起見(jiàn)證您的進(jìn)步~~
Convert string to number string.atoi(s,[, base]) //base is the base
or convert character to number int(str)
The ord function allows you to get the encoding value of a single character
But if you use it under py2, you need to distinguish between unicode and str types
It is more convenient to convert strings into MD5 values ??or sha512 strings