printcurrent_data++++++current_dataTypeError can only concatenate str not list to str
The error message suggests that you are trying to concatenate a list to a string, which is not allowed. To fix this, you need to convert the list to a string before concatenating it. Here's an example:
current_data = [1, 2, 3]
print("current_data+++++" + str(current_data))
This will convert the list current_data to a string using the str() function and then concatenate it with the rest of the string.
原文地址: https://www.cveoy.top/t/topic/i5Ny 著作权归作者所有。请勿转载和采集!