• 2022-07-27 问题

    下列Python代码,函数的定义和调用书写正确的是() A: def test(a| b): print(a) print(b) test(1| 2) B: def test(a): print(a) print(b) test(1, 2) C: def test(a, b): print(a) print(b) test(1) D: def test(a, b): print(a) print(b) test(1, 2)

    下列Python代码,函数的定义和调用书写正确的是() A: def test(a| b): print(a) print(b) test(1| 2) B: def test(a): print(a) print(b) test(1, 2) C: def test(a, b): print(a) print(b) test(1) D: def test(a, b): print(a) print(b) test(1, 2)

  • 2021-04-14 问题

    print(test())

    print(test())

  • 2021-04-14 问题

    #print("Test") print("abc") #print("xyz") 程序输出

    #print("Test") print("abc") #print("xyz") 程序输出

  • 2022-06-12 问题

    #print("Test")print("abc") #print("xyz")程序输出 A: Test<br/>abc xyz B: Test <br/>abc <br/>xyz C: abc D: abc xyz

    #print("Test")print("abc") #print("xyz")程序输出 A: Test<br/>abc xyz B: Test <br/>abc <br/>xyz C: abc D: abc xyz

  • 2022-06-12 问题

    #print(“Test”)[br][/br]print(“abc”)#print(“xyz”)程序的输出结果是() A: Test <br>abcxyz B: abc C: abcxyz D: Test abc <br>xyz

    #print(“Test”)[br][/br]print(“abc”)#print(“xyz”)程序的输出结果是() A: Test <br>abcxyz B: abc C: abcxyz D: Test abc <br>xyz

  • 2022-06-09 问题

    ‌以下程序的输出结果是:( )‏‌fo = open("text.txt",'w+')‏‌x,y ='this is a test','hello'‏‌fo.write('{}+{}\n'.format(x,y))‏‌print(fo.read())‏‌fo.close()‏‌‏ A: this is a test hello B: this is a test C: this is a test,hello. D: this is a test+hello

    ‌以下程序的输出结果是:( )‏‌fo = open("text.txt",'w+')‏‌x,y ='this is a test','hello'‏‌fo.write('{}+{}\n'.format(x,y))‏‌print(fo.read())‏‌fo.close()‏‌‏ A: this is a test hello B: this is a test C: this is a test,hello. D: this is a test+hello

  • 2022-06-09 问题

    以下操作能实现追加写入文件的是 A: echo "hello" > /tmp/test B: echo "hello" >> /tmp/test C: print "hello\n" >> /tmp/test D: printf "hello\n" >> /tmp/test

    以下操作能实现追加写入文件的是 A: echo "hello" > /tmp/test B: echo "hello" >> /tmp/test C: print "hello\n" >> /tmp/test D: printf "hello\n" >> /tmp/test

  • 2022-06-19 问题

    阅读下面的程序:[br][/br]class Test:[br][/br]data1 = 10[br][/br]def __str__(self): return "data1 = %d" % (self.data1)[br][/br]test = Test()[br][/br]print(test)[br][/br]print(repr(test))[br][/br]上述程序最终执行的结果为()。 A: 面向对象.Test object at 0x101ca12e8>data1 = 10 B: 面向对象.Test object at 0x101ca12e8><面向对象.Test object at 0x101ca12e8 C: data1 = 10data1 = 10 D: data1 = 10

    阅读下面的程序:[br][/br]class Test:[br][/br]data1 = 10[br][/br]def __str__(self): return "data1 = %d" % (self.data1)[br][/br]test = Test()[br][/br]print(test)[br][/br]print(repr(test))[br][/br]上述程序最终执行的结果为()。 A: 面向对象.Test object at 0x101ca12e8>data1 = 10 B: 面向对象.Test object at 0x101ca12e8><面向对象.Test object at 0x101ca12e8 C: data1 = 10data1 = 10 D: data1 = 10

  • 2022-06-29 问题

    以下正确的变量名是( )。 A: $test B: $2abc C: $2ABC D: _print

    以下正确的变量名是( )。 A: $test B: $2abc C: $2ABC D: _print

  • 2022-05-31 问题

    下列程序输出的结果是:( ) s="test,great,good,high"a=s.split(',')print(a&#91;1&#93;) A: great B: good C: test D: high

    下列程序输出的结果是:( ) s="test,great,good,high"a=s.split(',')print(a&#91;1&#93;) A: great B: good C: test D: high

  • 1 2 3 4 5 6 7 8 9 10