1. 使用转义字符 `\`:
print("Hello\tWorld") 使用制表符输出空格
2. 在 `print` 函数中使用逗号 `,`:
a = 1
b = 2
print(a, b) 输出 "1 2"
text = "C33CF00F00000000406B90F0000000000000000B382AD10"
text_list = re.findall(".{2}", text)
new_text = " ".join(text_list)
print(new_text) 输出 "C3 3C F0 0F 01 01 00 01 01 00 00 00 00 04 06 B9 0F 80 04 04 01 02 02 02 0"
4. 使用引号定义带有空格的字符串:
my_string = "Hello, world!"
print(my_string) 输出 "Hello, world!"
以上方法可以帮助您在Python中输出空格字符。