DAT文件编译 [英] DAT file compilation

查看:328
本文介绍了DAT文件编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过python我可以采取一些图形和/或

声音并将它们组合成一个.dat文件?如果是这样,怎么样?以及如何从$ pyb脚本中访问.dat文件中的数据?

Is there a way through python that I can take a few graphics and/or
sounds and combine them into a single .dat file? If so, how? And how
can I access the data in the .dat file from inside the python script?

推荐答案

Jay schrieb:
Jay schrieb:

有没有办法通过python我可以采取一些图形和/或

声音并将它们组合成一个单个.dat文件?如果是这样,怎么样?以及如何从$ pyc脚本中访问.dat文件中的数据?
Is there a way through python that I can take a few graphics and/or
sounds and combine them into a single .dat file? If so, how? And how
can I access the data in the .dat file from inside the python script?



使用zip文件。请参阅zipfile-module。


Diez

Use a zip-file. See the zipfile-module.

Diez


这是一个解决方案,但我宁愿采用文件格式最终用户不能轻易搞砸。

Diez B. Roggisch写道:
That''s one solution, but I''d rather a file format the end-user can''t
easily mess around with.
Diez B. Roggisch wrote:

Jay schrieb:
Jay schrieb:

有没有办法通过python我可以采取一些图形和/或

声音并将它们组合成一个单个.dat文件?如果是这样,怎么样?以及如何从$ pyc脚本中访问.dat文件中的数据?
Is there a way through python that I can take a few graphics and/or
sounds and combine them into a single .dat file? If so, how? And how
can I access the data in the .dat file from inside the python script?



使用zip文件。请参阅zipfile-module。


Diez


Use a zip-file. See the zipfile-module.

Diez


Jay写道:
Jay wrote:

这是一个解决方案,但我宁愿文件格式最终用户也不能轻易搞定。
That''s one solution, but I''d rather a file format the end-user can''t
easily mess around with.



要求以root身份安装程序并将其安装在

只读目录中 - 或者将资源提供给你的程序来自某个地方的cgi

脚本,只在需要时下载。这样,用户

至少需要对程序进行逆向工程,以查看

资源的来源,以便他们可以在
中插入相应的查询。
他们的网络浏览器。


James

-

James Stroud

加州大学洛杉矶分校-DOE基因组学和蛋白质组学研究所

方框951570

洛杉矶,加利福尼亚州90095

http://www.jamesstroud.com/


这篇关于DAT文件编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆