题解 | #格式化输出(一)#
格式化输出(一)
https://www.nowcoder.com/practice/fe82dc48f4f04b2397a85fb1bdbe34a2
name = input()
# print(f'I am {name} and I am studying Python in Nowcoder!')
print('I am %s and I am studying Python in Nowcoder!' %name)
两种方法均可。
格式化输出(一)
https://www.nowcoder.com/practice/fe82dc48f4f04b2397a85fb1bdbe34a2
name = input()
# print(f'I am {name} and I am studying Python in Nowcoder!')
print('I am %s and I am studying Python in Nowcoder!' %name)
两种方法均可。
相关推荐