字符串格式化替换
3324
0

print('{} a word she can get what she {} for.'.format('With','came'))

 print('{preposition} a word she can get what she {verb} for'.format(preposition = 'With',verb = 'came')) 

print('{0} a word she can get what she {1} for.'.format('With','came'))

15
收藏
点击回复
      全部留言
  • 0
更多回复
Python学习笔记
      圈内贴子8
  • 社群成员1
热门分类
扫一扫访问手机版

服务热线

18638995205

详情咨询

价格和优惠

微信客服