Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用包含 nessescary 数据的 csv 文件更改一些图片的关键字。
问题是如果不将引号放入数组元素中,我就无法更改关键字(请参阅:“b'Fallow_deer'”)。
我希望有人能帮帮忙。
代码
string1 = 'Fallow_deer' string1 = string1.encode('UTF-8') array = [string1] print(array)
字符串文字前面的“b”字符有什么作用?