TypeError: argument of type ‘NoneType‘ is not iterable

Python程序运行时,报TypeError: argument of type 'NoneType' is not iterable这个错误!

解决方法:

将传入的值转换为字符串类型,就可以解决:

 

你可能感兴趣的:(Python,python)