鱼C论坛's Archiver
论坛
›
萌新交流区
› python制表符的使用
hhzczy
发表于 2018-10-14 18:47:04
python制表符的使用
>>> print('\thello')
hello
>>> a = 'hello'
>>> print(\ta)
SyntaxError: unexpected character after line continuation character
>>>
请问,这种变量加制表符应该怎么写?
claws0n
发表于 2018-10-14 18:48:43
print('\t'+a)
页:
[1]
查看完整版本:
python制表符的使用