1.ValueError: unsupported format character ‘D‘ (0x44) at index 16
string0 = "123456" string = "string%s" %string0 上一句改成:string = "string%s".replace(‘%s‘,string0)
2.输出内容到命令行,中文字符是乱码
1>在输出内容后面加上.decode(‘utf-8‘)
时间: 2024-10-07 20:19:56
1.ValueError: unsupported format character ‘D‘ (0x44) at index 16
string0 = "123456" string = "string%s" %string0 上一句改成:string = "string%s".replace(‘%s‘,string0)
2.输出内容到命令行,中文字符是乱码
1>在输出内容后面加上.decode(‘utf-8‘)