can only concatenate str (not “int“) to str

The error encountered during the exercise
Error message
The reason is:
This error message indicates that you are trying to concatenate a variable of integer type with a string, but the system cannot complete the operation. Please check your code to make sure you convert integers to strings before concatenating them.

The solution is to convert the integer to a string and then concatenate

Guess you like

Origin blog.csdn.net/m0_53181852/article/details/129357927