我坚持将位置放在字符串中。我阅读了文件的内容
with io.open(testfile, 'r', encoding='utf-8') as f
\u2705 Offizielle Kan\u00e4le \ud83c\udde9\ud83c\uddea \ud83c\udde6\ud83c\uddf9 \ud83c\udde8\ud83c\udded\n@GET_THIS_STING
我该怎么办-“ \ u2705”被计为1个字母?然后,位置36将是@GET_THIS_STING
的开始尝试,
with open('text.txt', 'r', encoding='utf-8') as f:
str = f.read()
index = str.find('@')
print('char @ is at index: {}'.format(index))
print(str[index:])