题库首页 › 青少年软件编程(Python) › 题目 20279

对于字符串 s = "python is fun",以下关于字符串操作描述错误的是?( )

A. print(s.upper() )结果为 "PYTHON IS FUN"
B. print( s.title()) 结果为 "Python Is Fun"
C. print(s.replace('fun', 'ok')) 结果为 "python is ok"
D. print( s.title()) 结果为 "Python is fun"

正确答案:D

试卷来源:202606 青少年软件编程等级考试Python五级真题

本卷相关题目

在线做题 同科目题库