我是python的新手 - 请有人帮忙 [英] i am new to python-Please somebody help

查看:66
本文介绍了我是python的新手 - 请有人帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何将txt文件转换为zip文件


(即)我有一个名为packages的文件,我想要包含文件

a" .gz"通过实施python程序进行扩展

i dont know how to convert a txt file into a zip file

(i.e.,)i have a file named packages and i want the packages file with
a ".gz" extension by implementing a python program

推荐答案

8月2日凌晨4:31,cool.vimalsm ... @ gmail.com写道:
On Aug 2, 4:31 am, cool.vimalsm...@gmail.com wrote:

>

i想要包裹文件

a" .gz"通过实施python程序进行扩展
>
i want the packages file with
a ".gz" extension by implementing a python program

http: //docs.python.org/lib/module-gzip.html

http://docs.python.org/lib/module-gzip.html


2007年8月2日星期四09:31:43 + 0000,cool.vimalsmail写道:

[snip]


你最好写一个合理的主题行而不是

卑躬屈膝。


主题:如何在Python中使用gzip? [初学者]


然后,写完一个好的主题后,可能会为Google建议一个好的

搜索字符串:gzip python

http:// www。 google.com.au/search?&q=gzip+python


找到的前两个链接将回答您的问题。

- -

史蒂文。

On Thu, 02 Aug 2007 09:31:43 +0000, cool.vimalsmail wrote:
[snip]

You would be better off actually writing a sensible subject line instead
of grovelling.

Subject: How to use gzip in Python? [beginner]

Then, having written a good subject line, it might have suggested a good
search string for Google: "gzip python"

http://www.google.com.au/search?&q=gzip+python

The first two links found will answer your question.
--
Steven.


8月2日上午8:51,Steven D''Aprano

< st ... @ REMOVE.THIS.cybersource.com.auwrote:
On Aug 2, 8:51 am, Steven D''Aprano
<st...@REMOVE.THIS.cybersource.com.auwrote:

On Thu,2007年8月2日09:31:43 +0000,很酷.vimalsmail写道:


[snip]


你最好写一个合理的主题行而不是

。卑躬屈膝。


主题:如何在Python中使用gzip? [初学者]


然后,写完一个好的主题后,可能会为Google建议一个好的

搜索字符串:gzip python

http:// www。 google.com.au/search?&q=gzip+python

找到的前两个链接将回答您的问题。


-

史蒂文。
On Thu, 02 Aug 2007 09:31:43 +0000, cool.vimalsmail wrote:

[snip]

You would be better off actually writing a sensible subject line instead
of grovelling.

Subject: How to use gzip in Python? [beginner]

Then, having written a good subject line, it might have suggested a good
search string for Google: "gzip python"

http://www.google.com.au/search?&q=gzip+python

The first two links found will answer your question.

--
Steven.



此链接回答了我的问题 - http://www.google.com/search?hl=en&q...+list+rudeness

老实说,我已经在Ruby和Python中开发了多年了,并且

一直发现Ruby社区如果比Python更友好,那么
友好。如何正确地发布
帖子以及如何做自己的功课,你的观点很好。消息正确。交货

缺乏......

This link answers my question --http://www.google.com/search?hl=en&q...+list+rudeness.
Honestly, I have developed in both Ruby and Python for years now and
have consistently found that the Ruby community if more newbie-
friendly than Python''s. Your points are well-taken in how to properly
post and how to do your own homework. Message correct. Delivery
lacking...


这篇关于我是python的新手 - 请有人帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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