Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - How to convert an int number into a char string?
How to convert an int number into a char string?
1. Step 1, in the python language command window, enter int (12,2), and the result is wrong, indicating that non-string cannot be converted into decimal number.

2. Change it to 24589 of the string.

3. Change the number of the first parameter string in the int () method to 0 and 1, and it can be converted normally.

4. If you want to convert a string into an octal number, you can use the int () method and pass the second parameter to 8.

5. Convert the string value to decimal and pass the second parameter as 2, and the returned result is the same.

6. If you want to convert the numerical value in the string into hexadecimal, and the numerical value in the string cannot exceed the range.