python初学的小坑

初学python,发现一点小坑,我写了个pyhon脚本,一运行,结果报错:import: unable to open X server `' @ error/import.c/ImportImageCommand/369

找了半天也没发现问题,摸不着头脑,最后再https://stackoverflow.com/questions/19507096/python-error-import-unable-to-open-x-server这里发现了答案哈哈哈,在第一行注释#!/usr/bin/python的时候竟然少了个感叹号!!!!

改过来之后就运行正常啦~

猜你喜欢

转载自blog.csdn.net/Freya0110/article/details/82380714