1 formatter = "%r %r %r %r" 
 2 
 3 print formatter % (1, 2, 3, 4) 
 4 print formatter % ("one", "two", "three", "four") 
 5 print formatter % (True, False, False, True) 
 6 print formatter % (formatter, formatter, formatter, formatter) 
 7 print formatter % ( 
 8     "I had this thing.", 
 9     "That you could type up right.", 
10     "But it didn't sing.", 
11     "So I said goodnight." 
12 )
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案