例如,如果为我提供了以下字符串:
temp = "That looks great \ud83d\udc4c Good Job!"
我如何转换它,使其显示实际的表情符号()或文本意义(OK手势)?
最终结果应如下所示:
temp = "That looks great Good Job!"
或
temp = "That looks great :OK HAND SIGN: Good Job!"
我尝试过在Python中使用emoji库,但它似乎只支持Python转义字符。有没有办法把Java转义字符转换成Python转义字符?
提前感谢!