Vim:
:n,$s/hello/sky/g 替换第n行开始到最后一行的所有hello为sky
Swig:
$ swig -python hello.i
Unable to find "swig.swg"
Unable to find "pyth.swg"
解决办法:
加路径
$ swig -I${SWIG_PATH}/share/4.0.0 -I${SWIG_PATH}/share/python -python hello.i
python:
>>> bytes([97])
b'a'
>>> ord(b'a')
97
>>> a = [1, 2, 4, 255]
>>> b = bytes(a)
>>> c = list(b)
>>> n = 0xffffffff
>>> bytes(n) #可能造成死机,狂耗内存