python格式化字符串

 

#格式化字符串
msg = "Name:%s Age:%d" %("李白",25)
print(msg)

 

posted @ 2021-03-29 22:21  WellMandala  阅读(26)  评论(0)    收藏  举报