在^{cd1>}中,有Unicode 7的^{cd2>}索引,http://perldoc.perl.org/perluniprops.html在这里,我可以执行以下操作来填充开头和结束标点:
s/(\p{Open_Punctuation})/ $1 /g;
s/(\p{Close_Punctuation})/ $1 /g;
使用perl时填充的打开/结束标点的完整列表是什么?^{cd3>}中的等价性是什么?
相关问题:Padding multiple character with space - pythonPadding multiple character with space - python;这个问题是由回答者投票分开提出的,它应该是单独的。
你在问如何确定一个给定的开放标点对应的结束标点是什么?Unicode没有对此进行定义。事实上,甚至没有1:1的关系。在
但是,您应该相对容易地构建自己的映射。在
^{pr2}$在
^{3}$使用
cpan Unicode::Tussle
安装unichars
后,在python中:相关问题 更多 >
编程相关推荐