python 内置方法expandtabs 把字符串格式化成列表输出

#!/usr/bin/python3
# -*- coding: utf-8 -*-
test = "username\tmail\tage\nzhangsen\[email protected]\t25"
print(test.expandtabs(20))

猜你喜欢

转载自www.cnblogs.com/37yan/p/8919862.html
今日推荐