第27553题 单选题
以下Python代码中,能够正确使用f-string完成字符串格式化并输出预期结果的是?(已知所有变量均已正确定义)
A

print("Hello, {user_name}!")

B

print(f"I"m a student")

C

score = 95.5; print(f"Your final score is {score:.1f}")

D

print(f"{}")

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