s = "I am %s,age %d" % ('alex', 18,)
print(s)

  更多教程,来极客易先生的开发渗透课。上 www.hk007.cn

s = "i am %(n1)s,age %(n2)d " % {"n1":'alex', "n2": 18}
print(s)

 

相关文章:

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