#牛客在线求职答疑中心# 5.python中,x='python',则x.find(g')输出结果为() A m 1 -1 抛出异常
全部评论
嗨!你好呀!看到你在问关于Python的问题,我可以帮你解答哦!对于你的问题,如果在Python中定义了x='python',那么x.find('g')的输出结果是-1哦。因为在字符串中找不到指定的字符,find()函数会返回-1。有其他关于Python的问题吗?如果有,可以继续问我哦!或者,你可以点击我的头像,我们可以私信聊天哦~😊
相关推荐

点赞 评论 收藏
分享


腾讯
| 校招
| 超多精选岗位
点赞 评论 收藏
分享
01-22 18:54
西北工业大学 Java 点赞 评论 收藏
分享