yidao620c / python3-cookbook

《Python Cookbook》 3rd Edition Translation
11.7k stars 2.97k forks source link

Update p15_interpolating_variables_in_strings.rst #348

Closed jumploop closed 2 years ago

jumploop commented 3 years ago

'%(name) has %(n) messages.' % vars()格式化错误,应该是'%{name} has %{n} messages.' % vars()

jumploop commented 3 years ago

'%(name) has %(n) messages.' % vars()格式化错误,应该是'%(name)s has %(n)s messages.' % vars()