Как убрать табуляцию в python?
Вы можете использовать метод строки .replace()
lineWithTabulation = "\tLine with tabulation"
print(lineWithTabulation)
lineWithoutTabulation = lineWithTabulation.replace('\t', '')
print(lineWithoutTabulation)
# Вывод :
# Line with tabulation
# Line with tabulation
Подписывайтесь на канал 👉@pythonofff
Post #2537
1.03K
