• 2022-05-30 问题

    设str = '吵=口+少',输出结果为“吵口少”的print语句是:() A: print('{}'.format(str[::2])) B: print('{}'.format(str[::-1])) C: print('{}'.format(str[::])) D: print('{}'.format(str))

    设str = '吵=口+少',输出结果为“吵口少”的print语句是:() A: print('{}'.format(str[::2])) B: print('{}'.format(str[::-1])) C: print('{}'.format(str[::])) D: print('{}'.format(str))

  • 2022-06-18 问题

    设变量a=15.69458能够输出: RMB15.69 的是()。 A: print("RMB{:.2f}".format(a)) B: print("RMB"+str(a)) C: print("RMB",a) D: print("RMB{}".format(a))

    设变量a=15.69458能够输出: RMB15.69 的是()。 A: print("RMB{:.2f}".format(a)) B: print("RMB"+str(a)) C: print("RMB",a) D: print("RMB{}".format(a))

  • 2022-06-12 问题

    已知a='python', b=1990,在下列哪些语句可得到:'python诞生于1990'? A: '{0}诞生于{1}'.format(a, b) B: '%s诞生于%d'%(a,b) C: a + '诞生于' + D: str.format('{0}诞生于{1}', a, b)

    已知a='python', b=1990,在下列哪些语句可得到:'python诞生于1990'? A: '{0}诞生于{1}'.format(a, b) B: '%s诞生于%d'%(a,b) C: a + '诞生于' + D: str.format('{0}诞生于{1}', a, b)

  • 2022-06-18 问题

    设变量a=15.69458能够输出: RMB15.69 的是()。 A: print("RMB{:.2f}".format(a)) B: print("RMB"+str(a)) C: print("RMB",a) D: print("RMB{}".format(a))

    设变量a=15.69458能够输出: RMB15.69 的是()。 A: print("RMB{:.2f}".format(a)) B: print("RMB"+str(a)) C: print("RMB",a) D: print("RMB{}".format(a))

  • 2022-06-03 问题

    Which of the followings are mentioned in the format types of invitation letter in this lesson? A: Block format B: Modified format C: Small format D: Big format

    Which of the followings are mentioned in the format types of invitation letter in this lesson? A: Block format B: Modified format C: Small format D: Big format

  • 2022-06-06 问题

    The most widely used format in a business letter is ___________, and in the letter of this format each line starts from the leftmost side, without any space left. A: indented format B: modified block format C: mixed format D: block / full format

    The most widely used format in a business letter is ___________, and in the letter of this format each line starts from the leftmost side, without any space left. A: indented format B: modified block format C: mixed format D: block / full format

  • 2022-06-08 问题

    以近似分数形式输出数据的命令为( ) A: format short B: format long C: format rat D: format bank

    以近似分数形式输出数据的命令为( ) A: format short B: format long C: format rat D: format bank

  • 2022-07-02 问题

    下面关于format()的使用,错误的是( )。 A: "{0:M^10.3f}".format(5985.7380) B: "{0:.2d}".format(452.6570) C: "{0:.3}".format("Good") D: "{0:3}".format(1234)

    下面关于format()的使用,错误的是( )。 A: "{0:M^10.3f}".format(5985.7380) B: "{0:.2d}".format(452.6570) C: "{0:.3}".format("Good") D: "{0:3}".format(1234)

  • 2021-04-14 问题

    Python2.6 开始,新增了一种格式化字符串的函数 str.format(),它增强了字符串格式化的功能

    Python2.6 开始,新增了一种格式化字符串的函数 str.format(),它增强了字符串格式化的功能

  • 2022-05-31 问题

    The difference between a block format and an indented format is that in a block format, every component is left-aligned while in an indented format, every component has an indentation. A: 正确 B: 错误

    The difference between a block format and an indented format is that in a block format, every component is left-aligned while in an indented format, every component has an indentation. A: 正确 B: 错误

  • 1 2 3 4 5 6 7 8 9 10