TypeError join got an unexpected keyword argument encoding
The error message suggests that the join() method does not accept the encoding argument.
The join() method is used to concatenate elements of a string iterable, such as a list, using a specified separator. It does not have an encoding argument because it operates on strings, not bytes.
If you are trying to join byte strings, you should convert them to regular strings first using the proper encoding and then use join() on the resulting list of strings.
原文地址: https://www.cveoy.top/t/topic/jdxJ 著作权归作者所有。请勿转载和采集!