character = input("输入一个字符")
sentence = input("输入非空字符串")
if character in sentence:
print("index = {}".format(sentence.rfind(character)))
else:
print("Not Found")
2024-02-20 08:46:34
character = input("输入一个字符")
sentence = input("输入非空字符串")
if character in sentence:
print("index = {}".format(sentence.rfind(character)))
else:
print("Not Found")
下一篇:ES6基础