开发者社区 问答 正文

python函数的format(value [, format_spec])格式化输出格式是什么?

python函数的format(value [, format_spec])格式化输出格式是什么?

展开
收起
游客fbdr25iajcjto 2021-11-06 10:24:58 476 分享 版权
1 条回答
写回答
取消 提交回答
  • 格式化的参数顺序从0开始,如“I am {0},I like {1}”

    2021-11-06 10:25:40
    赞同 展开评论