go top

格式化字符串的值

网络释义

  format x.__format__

Python的特殊属性和用法 ... ③ 字符串的“非正式”值 str(x) x.__str__() ④ 字节数组的“非正式”值 bytes(x) x.__bytes__() ⑤ 格式化字符串的值 format(x, format_spec) x.__format__(format_spec) ...

基于1个网页-相关网页

有道翻译

格式化字符串的值

Format the value of the string

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 格式化类型转化字符串表示形式;分析则与格式化相反,它是从字符串表示形式创建数据类型。

    Formatting converts the value of a type into a string representation; parsing, the inverse of formatting, creates a data type from a string representation.

    youdao

  • 如果格式化格式字符串出现0”的位置一个数字数字复制结果字符串中。

    If the value being formatted has a digit in the position where the '0' appears in the format string, then that digit is copied to the result string.

    youdao

  • 方法采用某个枚举格式化字符串指定希望返回

    This method takes one of the enumeration formatting strings to specify the value that you want returned.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定