1. Dec转Hex hex() { typeset -i HeX ((HeX=16#0)) while [ $# != 0 ] do ((HeX=$1)) print -n "0x${HeX#16#}" shift done print - } 2. Hex转Dec dec() { ((DeC=0)) while [ $# != 0 ] do ((DeC=16#${1#0x})) print -n "${Dec}" shift done print - }...
python中的字符数字之间的转换函数 int(x [,base ]) 将x转换为一个整数 long(x [,base ]) ...