python 字符串占位符的使用

name2='我是{} 我的专业是 {}'.format('张三','计算机科学技术')
print(name2)

posted on 2018-11-29 16:06  听哥哥的话  阅读(1141)  评论(0编辑  收藏  举报

导航