0x9*_*x90 4 python python-2.7
我怎样才能设置40为变量,让我们说动态temp计算并传递而不40是以这种格式字符串:
40
temp
{:<40}.format('aa')
Rad*_*io- 6
这样的事情应该有效:
>>> width = 40 >>> '{0:<{width}}'.format('aa', width=width) 'aa '
归档时间:
12 年,9 月 前
查看次数:
669 次
最近记录: