English 中文(简体)
我如何获得双亲和文本数据,以便用电子邮件处理,处理第3条?
原标题:How do I access both binary and text data for email processing with Python 3?

我正在把Adhur 2方案转换为3 和I m,不肯定采取什么做法。

该方案在一份单一的电子邮件中,或者在包含电子邮件的档案中注明。 该方案然后对电子邮件进行调节,并对电子邮件进行某些处理。

我们需要与电子邮件投入的原始数据合作,将其储存在软盘上,并投放MD5。 我们还需要利用电子邮件投入的案文,以便通过斯图尔和提炼田等渠道进行。

焚烧 3 对于我来说,我们如何在数据中读一读尚不清楚。 我认为,我们需要原始的双元数据,以便对其做5米,并且能够将其写成光盘。 我理解,我们也需要以文字形式将其与电子邮件图书馆连接起来。 灰 Python3对IO处理和文本处理作了重大改动,我看不出将电子邮件原始数据改为正文数据。

谁能对此提供一般性指导?

最佳回答

The general guidance is convert everything to unicode ASAP and keep it that way until the last possible minute.

请注意str为旧的unicodebytes为旧的str

rel=“nofollow”http://docs.python.org/dev/howto/unicode.html。 一开始。

焚烧 3 对于我来说,我们如何在数据中读一读尚不清楚。

www.un.org/Depts/DGACM/index_french.htm 当你打开档案时,它将自动给你统一编码。 如果您从<代码>上读到/code>,则请上单编码。 可从<代码>stdin.buffer读到,以获取双亲数据。

我认为,我们需要原始的双元数据,以便对其做5米。

是的,你就是这样做的。 www.un.org/Depts/DGACM/index_french.htm

并且能够将其写成光盘。

页: 1 当你打开文件时,你将文件重新写成,文件标注为你。

我理解,我们也需要以文字形式将其与电子邮件图书馆连接起来。

页: 1


尽管如此,这个问题在Stack Overflow上确实太公开了。 当你有具体问题时,我们会回头,而我们会有所帮助。

问题回答

暂无回答




相关问题
Simple JAVA: Password Verifier problem

I have a simple problem that says: A password for xyz corporation is supposed to be 6 characters long and made up of a combination of letters and digits. Write a program fragment to read in a string ...

Case insensitive comparison of strings in shell script

The == operator is used to compare two strings in shell script. However, I want to compare two strings ignoring case, how can it be done? Is there any standard command for this?

Trying to split by two delimiters and it doesn t work - C

I wrote below code to readin line by line from stdin ex. city=Boston;city=New York;city=Chicago and then split each line by ; delimiter and print each record. Then in yet another loop I try to ...

String initialization with pair of iterators

I m trying to initialize string with iterators and something like this works: ifstream fin("tmp.txt"); istream_iterator<char> in_i(fin), eos; //here eos is 1 over the end string s(in_i, ...

break a string in parts

I have a string "pc1|pc2|pc3|" I want to get each word on different line like: pc1 pc2 pc3 I need to do this in C#... any suggestions??

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...

热门标签