题海让大学四年没有难题
白天模式登陆

题目详情

单选题 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程序设计(双语)课程封面

学科:Python程序设计(双语)

时间:2023-11-24 00:22:56

Copyright © 2022 津ICP备2021001502号