How to get mac address of bluetooth with python in win7?
--
https://mail.python.org/mailman/listinfo/python-list
str='(\\HasNoChildren \\Junk) "/" "[Gmail]/&V4NXPpCuTvY-"'
x=str.split(' "')
[i.replace('"','') for i in x]
['(\\HasNoChildren \\Junk)', '/', '[Gmail]/&V4NXPpCuTvY-']
x.strip(" ") will create four parts.
is there more simple to do that ?
--
https://mail.python.org/mailman/listinfo/python-list
I have a gmail account 'x...@gmail.com' which subscripted python
maillist. I want to delete any emails which is sent to
python-list@python.org .
|import imaplib
user="xxx"
password="yy"
con=imaplib.IMAP4_SSL('imap.gmail.com')
con.login(user,password)
con.select('[Gmail]/&YkBnCZCuTvY-')
typ
and how to write the delete command with imaplib?
On 8/6/2014 5:14 PM, Ben Finney wrote:
elearn writes:
status, data= con.search(None, "ALL")
print(len(data[0].split()))
48
typ, data= con.search(None, 'Body', '"x...@gmail.com"')
data
[b'
I have a gmail account 'x...@gmail.com' which subscripted python
maillist. To take part in python discussion is the only target for my
x...@gmail.com. There are so many emails in my x...@gmail.com,it is a good
idea for me to auto delete all emails whose body contain no . I write
some codes to d
I want to call back a function which is the method of a class .
def callback(self.do,x):
return(self.do(x))
That is what i want to write,when i input
def callback(self.do,x):
error message:
File "", line 1
def callback(self.do,x):
^
Synt