题解 | #字符列表的长度#

字符列表的长度

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

my_list=['P','y','t','h','o','n']
x=['Here is the original list:',my_list,'\r','The number that my_list has is:',len(my_list)]
for i in x:
    print(i)
	这里如果换行用的\n的话就会换两行,只能用\r

全部评论

相关推荐

不愿透露姓名的神秘牛友
今天 11:00
点赞 评论 收藏
分享
06-02 15:17
门头沟学院 Java
心爱的idea:怎么会呢 应该是打招呼有问题 问就说实习6个月全国可飞随时到岗
点赞 评论 收藏
分享
评论
5
1
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务