#!/usr/bin/python3 # -*- coding: utf-8 -*- test = "username\tmail\tage\nzhangsen\[email protected]\t25" print(test.expandtabs(20))
python 内置方法expandtabs 把字符串格式化成列表输出
猜你喜欢
转载自www.cnblogs.com/37yan/p/8919862.html
今日推荐
周排行