以下文字与答案无关
提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。
import matplotlib.pyplot as plt
plt.subplots(2, 2, sharex=________)
plt.show()
以上程序的横线处填充以下哪个取值,可以共享每列子图的坐标轴?( )
选项: A:A. 'col' B:A. 'row' C:A. 'all' D:A. 'none'Import matplotlib.pyplot as plt
Plt.subplots(2, 2, sharex=________)
Plt.show()
以上程序的横线处填充以下哪个取值,可以共享每列子图的坐标轴?
选项: A:'col'
B:'row'
C:'all'
D:'none'
Import numpy as np
Import matplotlib.pyplot as plt
Data = np.array(20, 50, 10, 15, 30, 55])
Pie_labels = np.array('A', 'B', 'C', 'D', 'E', 'F'])
Plt.pie(data, labels=pie_labels)
Plt.show()
B:Import numpy as np
Import matplotlib.pyplot as plt
Data = np.array(20, 50, 10, 15, 30, 55])
Pie_labels = np.array('A', 'B', 'C', 'D', 'E', 'F'])
Plt.pie(data, radius=1.5, labels=pie_labels)
Plt.show()
C:Import numpy as np
Import matplotlib.pyplot as plt
Data = np.array(20, 50, 10, 15, 30, 55])
Pie_labels = np.array('A', 'B', 'C', 'D', 'E', 'F'])
Plt.pie(data, radius=1.5, explode=0, 0.2, 0, 0, 0, 0],labels=pie_labels)
Plt.show()
D:Import numpy as np
Import matplotlib.pyplot as plt
Data = np.array(20, 50, 10, 15, 30, 55])
Pie_labels = np.array('A', 'B', 'C', 'D', 'E', 'F'])
Plt.pie(data, radius=1.5, wedgeprops={'width': 0.6},labels=pie_labels)
Plt.show()
lstDemo = ]
lstDemo.append('A','B')
print(lstDemo)
运行程序,其最终执行的结果为( )
选项: A:'A', 'B']
B:'B', 'A']
C:'A']
D:程序出现ValueError异常
Pattern = re.compile(r"\u4e00-\u9fa5]+")
Result = pattern.findall(words)
Print(result)
运行上述程序,最终得到的结果为()。
选项: A:'你好']
B:'你好', '我是你的']
C:'你好', '我是你的', '很高兴']
D:'你好'
">8.阅读下面一段示例程序:Import re
Words = "你好,Jane!我是你的fans,很高兴meet you"
Pattern = re.compile(r"\u4e00-\u9fa5]+")
Result = pattern.findall(words)
Print(result)
运行上述程序,最终得到的结果为()。
选项: A:'你好']
B:'你好', '我是你的']
C:'你好', '我是你的', '很高兴']
D:'你好'
plt.legend(lines, fancybox=True)
B:plt.legend(lines, fancybox=True, ncol=2)
C:plt.legend(lines, '正弦', '余弦'], ncol=2)
D:plt.legend(lines, '正弦', '余弦'], ncol=3)
'1',2,3
B:1 2 3
C:'1' 2 3
D:'1'
2
3
%matplotlib auto
import matplotlib.pyplot as plt
ax_one = plt.subplot(223)
ax_one.plot(1, 2, 3, 4, 5])
plt.show()
运行程序,效果为( )。
选项: A:左上
B:右上
C:左下
D:右下
plt.axhline(y=1.5, ls='--', linewidth=1.5)
B:plt.axhline(y=1, ls='--', linewidth=1.5)
C:plt.axvline(x=1.5, ls='--', linewidth=1.5)
D:plt.axvline(x=1, ls='--', linewidth=1.5)
Str_list=str1.split('|')
D={}
For l in str_list:
key,value=l.split(':')
Dkey]=value
Print(d)
选项: A:k:1,k1:2,k2:3,k3:4]
B:{k:1,k1:2,k2:3,k3:4}
C:'k':'1,'k1':2'','k2':'3','k3':'4']
D:{'k':'1,'k1':2'','k2':'3','k3':'4'}
">13.下面代码的输出结果是()。Str1="k:1|k1:2|k2:3|k3:4"
Str_list=str1.split('|')
D={}
For l in str_list:
key,value=l.split(':')
Dkey]=value
Print(d)
选项: A:k:1,k1:2,k2:3,k3:4]
B:{k:1,k1:2,k2:3,k3:4}
C:'k':'1,'k1':2'','k2':'3','k3':'4']
D:{'k':'1,'k1':2'','k2':'3','k3':'4'}
a="1,'a', 2, 'b']"
B:a = {1,'a', 2, 'b']}
C:a = 1,'a', 2, 'b']]
D:a=(1,'a', 2, 'b'])
def foo(arg1, arg2='test', arg3=100):
print arg1, arg2, arg3
选项: A:foo(arg1 = 'where', arg2 = 'what')
B:foo('where')
C:foo('where','what')
D:foo(arg = 'where')
'(','1',',','2',')',',',
'H','e','l','l','o']
B:(1,2), 'Hello']
C:输出错误
D:‘(1,2)’, ‘Hello’]
'2.5+1+2'
C:'5.5'
D:5.5
">17.表达式eval("5/2+5%2+5//2")的结果是( )。 选项: A:'2.5_1_2'
B:'2.5+1+2'
C:'5.5'
D:5.5
import matplotlib.pyplot as plt
plt.scatter(1, 2, 3], 3, 4, 5], s=10, marker='^')
plt.show()
以上代码运行后,展示了一个带有( )标记的散点图。
选项: A:正方形
B:星形
C:菱形
D:正三角形
True
B:False
C:'n'
D:'Y'