第27641题 单选题
下列关于Python内置函数print()的使用描述中,正确的一项是?

Python内置函数print()的完整签名为print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False),下列关于该函数的使用说法正确的是:

A

执行print("apple", "banana", sep="|")会输出apple banana

B

执行print("python", end="?")会在输出python后自动换行

C

执行print("test content", file=open("output.txt", "w"))会将test content写入到当前目录的output.txt文件中

D

执行print(1, flush=True)会延迟输出结果,不会立即打印到控制台

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