文件 a.txt 的内容如下:
[1, 2, 3, 4]
以下代码的执行结果是()。
f=open('a.txt', 'r')
print(f.read().split(', '))
f.close()
以下语句执行结果是()s=北京,上海,广州,深圳print(s.strip(,).replace(,,;))以下语句执行结果是()s='北京,上海,广州,深圳'
以下程序的输出结果是:s=try:for i in range(1, 10, 2):s.append(i)except:print(error)print(s)
阅读下列代码,print输出什么?import re pattern = pile(rd+) # 查找数字result1 = pattern.findall(r
2.设f是R"上的连续函数,c为实数.设-|||-_(c)= xin R|f(x)lt c , _(c)= xin R|f(x)leqslant c ,-||
已知有一个列表 names = [1,2,3, hello ],执行print(hello in names)运行结果为A. TrueB. False
语句:print(abcDEF.islower( ))的输出结果是________________语句:print('abcDEF'.islower())的输出
执行以下程序时,输入1,2,3,显示的结果是_______。x=input(Please input:)print(type(eval(x)))A.
运行下段程序:names= [1,2,3,hello]names.remove(hello)print(names)结果为:_ [1,2,3,hello][2,
运行下段程序:names=[1,2,3,hello]del names[-1]print(names)结果为: ( )[1,2,3,hello] [2,
dfrac (1)(3)f(x) C. -3f(x) D. -dfrac (1)(3)f(x)