题解 | #格式化输出(一)#

格式化输出(一)

https://www.nowcoder.com/practice/fe82dc48f4f04b2397a85fb1bdbe34a2

name = input()
print(f'I am {name} and I am studying Python in Nowcoder!')

#位置一一对应
# print('I am {0} and I am studying Python in Nowcoder!'.format(name))
#参数
# print('I am {A} and I am studying Python in Nowcoder!'.format(A = name))
#文本用%s占位符
# print('I am %s and I am studying Python in Nowcoder!'%name)


全部评论

相关推荐

做人要有梦想dji:最新工位查看图片
点赞 评论 收藏
分享
头像
2024-12-14 23:12
携程_移动安全研发
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务