firefox并不支持selectSingleNode和selectNodes的解决方法 function test(){ var perid = document.thisForm.PerID.value; var xml="test"; if(window.ActiveXObject){ var xml=new ActiveXObject("Microsoft.XMLDOM"); xml.async=false; xml.load("xxxx.xml&…
近来研究图片的剪切拼接,用到PIL,在打开PNG格式保存为JPEG格式的图片发现报错: import os from PIL import Image im = Image.open(r'E:\work\testcrop\test\hn1.png') img_size = im.size w = img_size[0] / 2.0 h = img_size[1] x = 0 y = 0 print("图片宽度和高度分别是{}".format(img_size)) region = im…