what+‘空格‘*4,结果是后面四个空格
>>> who=‘k‘ >>> what=‘Ni!‘ >>> print(‘we are hte %s who say %s‘%(who,((what+‘ ‘)*4))) we are hte k who say Ni! Ni! Ni! Ni! >>> print(‘we are hte %s who say %s‘%(who,(what+‘ ‘*4))) we are hte k who say Ni!
时间: 2024-11-05 22:01:40