将转义字符转换为python 2和3的unicode

时间:2019-11-28 09:46:42

标签: regex python-3.x python-2.7 python-unicode unicode-escapes

我想将字符串的特殊字符转换为

的unicode
func renderer(_ renderer: SCNSceneRenderer, updateAtTime time: TimeInterval)          
// Or
func renderer(_ renderer: SCNSceneRenderer, didUpdate node: SCNNode, for anchor: ARAnchor)

将成为

name = "shahr?ukh/"

但是我想要一种可以同时在python和python 3上工作的方法

注意:我使用CGI库进行ROR的工作相同

0 个答案:

没有答案