• 2021-04-14 问题

    表达式 'Hello world. I like Python.'.rfind('python') 的值为()

    表达式 'Hello world. I like Python.'.rfind('python') 的值为()

  • 2022-06-06 问题

    s = "I love Python." print(s[-2:5:-1])输出的结果是____________。

    s = "I love Python." print(s[-2:5:-1])输出的结果是____________。

  • 2022-06-07 问题

    Any number that can be represented as a decimal fraction can be represented exactly in floating point representation in Python.

    Any number that can be represented as a decimal fraction can be represented exactly in floating point representation in Python.

  • 2022-06-11 问题

    Which output of the following choices is correct A: print('{:5.3f}'.format(math.pi)) <br>3.1416 B: 'Life is short, you need Python'. find('Life') <br>1 C: print('you' in 'Life is short, you need Python.') <br>True D: seq = [1, 2, 3, 4] <br>>>> sep = '+' <br>>>> sep.join(seq) <br>'1+2+3+4'

    Which output of the following choices is correct A: print('{:5.3f}'.format(math.pi)) <br>3.1416 B: 'Life is short, you need Python'. find('Life') <br>1 C: print('you' in 'Life is short, you need Python.') <br>True D: seq = [1, 2, 3, 4] <br>>>> sep = '+' <br>>>> sep.join(seq) <br>'1+2+3+4'

  • 2022-07-25 问题

    以下对于字符串的相关操作,正确的输出结果是哪些选项? A: >>> 'Life is short, you need Python.'.find('you') 15 B: >>> seq = [1, 2, 3, 4]; >>> sep = '+'; >>> sep.join(seq) '1+2+3+4' C: >>> print '%05.3f' % math.pi 3.1416 D: >>> print 'you' in 'Life is short, you need Python.' True

    以下对于字符串的相关操作,正确的输出结果是哪些选项? A: >>> 'Life is short, you need Python.'.find('you') 15 B: >>> seq = [1, 2, 3, 4]; >>> sep = '+'; >>> sep.join(seq) '1+2+3+4' C: >>> print '%05.3f' % math.pi 3.1416 D: >>> print 'you' in 'Life is short, you need Python.' True

  • 2022-06-07 问题

    Given an English text, write a function count_len to count the frequencies of words of given length. The test string is 'Life is short, you need Python', count_len(4) will return 2. 定义函数count_len统计输入的英文文本中参数给定长度的单词出现的次数。 输入:'Life is short, you need Python.' count_len(5)输出:1 count_len(4)输出:2

    Given an English text, write a function count_len to count the frequencies of words of given length. The test string is 'Life is short, you need Python', count_len(4) will return 2. 定义函数count_len统计输入的英文文本中参数给定长度的单词出现的次数。 输入:'Life is short, you need Python.' count_len(5)输出:1 count_len(4)输出:2

  • 2021-04-14 问题

    编写一个Python程序,输出如下语句。 学Python,成为Python程序员。 学Python,成为Python程序员。 学Python,成为Python程序员。 学Python,成为Python程序员。 学Python,成为Python程序员

    编写一个Python程序,输出如下语句。 学Python,成为Python程序员。 学Python,成为Python程序员。 学Python,成为Python程序员。 学Python,成为Python程序员。 学Python,成为Python程序员

  • 2021-04-14 问题

    语句print("{0:=^20}".format("Python"))输出结果是: ==============Python|=======Python=======|Python|Python==============

    语句print("{0:=^20}".format("Python"))输出结果是: ==============Python|=======Python=======|Python|Python==============

  • 2021-04-14 问题

    【单选题】markdown里面python源代码显示要有语法高亮,要怎么写? A. ```python python源码 ``` B. #python python源码 # C. /*python python源码 */ D. $python python源码 $

    【单选题】markdown里面python源代码显示要有语法高亮,要怎么写? A. ```python python源码 ``` B. #python python源码 # C. /*python python源码 */ D. $python python源码 $

  • 2021-04-14 问题

    编写一个Python程序,输出如下语句 Hello Python Hello Python Hello Python Hello Python Hello Python

    编写一个Python程序,输出如下语句 Hello Python Hello Python Hello Python Hello Python Hello Python

  • 1 2 3 4 5 6 7 8 9 10