砂拉豆 发表于 2015-12-29 12:26:47

perl ascii值与字符之间的相互转换

$num= ord($char);
字符转为ascii值

$char = chr($num);
ascii值转为字符
页: [1]
查看完整版本: perl ascii值与字符之间的相互转换