自己写的简单串口小票打印程序,可以检测打印机忙、缺纸。使用方法:Print(stringstr,stringalign)str:要打印的字符串align:"left","center","right"