题目详情
单选题 What will be the output of the following Python code? s="a@b@c@d" a=list(s.partition("@")) print(a) b=list(s.split("@")) print(b)
A. ['a', '@', 'b@c@d'] ['a', 'b', 'c', 'd']
B. ['a', '@', 'b@c@d'] ['a', '@', 'b', '@', 'c', '@', 'd']
C. ['a', 'b', 'c', 'd'] ['a', 'b', 'c', 'd']
D. ['a', '@', 'b', '@', 'c', '@', 'd'] ['a', 'b', 'c', 'd']

学科:Python程序设计(双语)
时间:2023-11-24 00:22:56
相关题目
相关作业
