Hello:
I have a script for sending email from python (it is attached bellow). When I
am
launching the script I get the error:
TypeError: cannot concatenate 'str' and 'type' objects if I use sys.argv[1],
but
if I input from the begging an email address like em...@email.com, the script
is
- Forwarded Message
From: sandric ionut sandricio...@yahoo.com
To: Dave Angel da...@ieee.org
Sent: Tue, August 31, 2010 3:56:40 PM
Subject: Re: sendmail error
From: Dave Angel da...@ieee.org
To: sandric ionut sandricio...@yahoo.com
Cc: Python
to sandric ionut to exclaim:
Hello:
I have a script for sending email from python (it is attached bellow). When
I am launching the script I get the error:
TypeError: cannot concatenate 'str' and 'type' objects if I use
sys.argv[1], but if I input from the begging an email address like
em
Hello:
I have a text file that looks like:
0 23
1 342
3 31
and I want to read the file and print it out like:
0 1 3
23 342 31
How can I do this?
Thnak you in advance,
Ionut
--
http://mail.python.org/mailman/listinfo/python-list
, but this should work:
L1 = []
L2 = []
for i in file:
tmp = i.split( )
L1.append(tmp[0])
L2.append(tmp[1])
for i in L1:
print i,
print # new line
for i in L2:
print i,
print # new line
Almar
2008/10/1 sandric ionut [EMAIL PROTECTED]
Hello:
I have a text file that looks
Even better,
Thank you all
Ionut
- Original Message
From: D'Arcy J.M. Cain [EMAIL PROTECTED]
To: sandric ionut [EMAIL PROTECTED]
Cc: python-list@python.org
Sent: Wednesday, October 1, 2008 3:13:55 PM
Subject: Re: change line with columns when print
On Wed, 1 Oct 2008 04:43:34 -0700
Hi:
I have the following situation:
nameAll = []
for i in range(1,10,1):
n = name + str([i])
nameAll += n
print nameAll
I get:
['n', 'a', 'm', 'e', '[', '1', ']', 'n', 'a', 'm', 'e', '[', '2', ']', 'n',
'a', 'm', 'e', '[', '3', ']', 'n', 'a', 'm', 'e', '[', '4',
]
To: Python List python-list@python.org
Sent: Wednesday, October 1, 2008 7:50:25 PM
Subject: Fwd: string concatenate
On Oct 1, 2008, at 12:41 PM, sandric ionut wrote:
Hi:
I have the following situation:
nameAll = []
for i in range(1,10,1):
n = name + str([i])
nameAll += n