第27214题 单选题
下列关于Python模块导入与别名设置的代码片段中,语法正确且能通过别名正常调用对应功能的是?

以下四个选项均为常见的Python模块导入写法,请选出符合要求的一项。

A

import random as rd; print(random.randint(1, 1))

B

from pandas import DataFrame as df; print(df({'col1': [1, 2, 3]}))

C

import matplotlib.pyplot plt; plt.plot([1, 2, 3])

D

from requests import get; resp = get('https://httpbin.org/get'); print(resp.status_code)

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析