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

题目详情

单选题 字符串s="hello world",若要将其中的空格去掉,应使用的代码是( )

A. lstrip()

B. rstrip()

C. strip()

D. replace(" ","")

python程序设计课程封面

学科:python程序设计

时间:2025-10-29 08:03:44

Copyright © 2022 津ICP备2021001502号