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

my_list=['P','y','t','h','o','n']

print('Here is the original list:')
print(my_list)
print()
print('The number that my_list has is:')
print(len(my_list))

#print('Here is the original list:','\n',my_list,'\n')
#print('The number that my_list has is:','\n',len(my_list),'\n')

有人说说最后两行代码为什么得不到正确结果吗,看起来主要是前面多输出了一个空格,但不清楚为什么

全部评论
打开chatGpt 你会发现打开了新世界的大门
点赞 回复 分享
发布于 2023-05-17 01:37 河北

相关推荐

LZHR:老哥你从投递简历测评完到一面中间隔了多久呀,我这边已经过了五天了仍显示简历筛选中是不是就是挂了
腾讯求职进展汇总
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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