The solution of typeerror: expected string or buffer

Error type: TypeError: expected string or buffer

Specific error explanation: This is because the returned variable is not a character type, which causes this error

The specific solution: add an if statement before the specific program segment to determine whether the program returns in a legal format, and if it is, continue to run the program.

 

Similar Posts: