这个python图像转换工具的正确终端语法是什么

时间:2015-11-16 14:18:54

标签: python syntax

我正在尝试使用此图片转换工具,但这个例子对我来说太模糊了。该实用程序位于:Image convertor

在这个zip文件夹中是python文件bmpcf.py当我打开这个文件时,我收到以下信息。我假设我要在终端窗口中键入示例,但我可以弄清楚语法。 (给出的示例似乎没有任何对bmp文件的引用???)我要转换的测试bmp文件称为35x35.bmp我是否需要将它或此python脚本放在特定的位置?我尝试了几个不同的地方,尝试使用完整路径,但无法弄清楚。非常感谢。

这是“帮助消息”'单击bmpcf.py文件时出现:

Last login: Mon Nov 16 08:13:56 on ttys001
cd '/Users/myname/Downloads/bv4612_image_convert/' && '/usr/local/bin/pythonw'  '/Users/myname/Downloads/bv4612_image_convert/bmpcf.py'  && echo Exit status: $? && exit 1
myname-MacBook-Air:~ myname$ cd '/Users/myname/Downloads/bv4612_image_convert/' && '/usr/local/bin/pythonw'  '/Users/myname/Downloads/bv4612_image_convert/bmpcf.py'  && echo Exit status: $? && exit 1

Conversion utility for 128x64 type graphic display
Converts a bmp file into verical 8 bit lines for 
applying to the display pages

Use <filename> <hex/bin> <format>
filename   is the full file name including bmp
hex        is 1 for hex or 0 for decimal
format     b for use with ByPic (.bas)
           c for use with C/C++ (.h)
           t text fomat (.txt)
           i binary format (.bin)
output will be a text file

Example python.py bmpcf.py 1 b

Exit status: 0
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

0 个答案:

没有答案