import os,json,copy
class param_load(object):
def __init__(self, param):
self.param = param
pass
def main(self):
param = self.param
key_list = []
for key,value in param.items():
print(key )
key_list.append(key)
len_key = len(key_list)
for a in range(len_key):
# param2 = param
param2 = self.param.copy()
param2[key_list[a]] = ''
print (param2)
continue
def test(self):
pass
if __name__ == '__main__':
param = ({1:1,2:2,3:3})
pl = param_load(param)
pl.main()
pl.test()
以上 测试代码 搬运使用
Hi. This is the qmail-send program at hades2.communilink.net.
I’m afraid I wasn’t able to deliver your message to the following addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.
AUTORESPOND: This message is looping…it has my Delivered-To header.
user does not exist, but will deliver to /var/vpopmail/domains/chemco.com.hk/postmaster/
— Below this line is a copy of the message.
Return-Path:
Received: (qmail 12048 invoked by uid 0); 20 Jul 2021 18:56:33 -0000
Received: from unknown (HELO mx04.communilink.net) (203.124.10.224)
by 0 with ESMTPS (DHE-RSA-AES256-GCM-SHA384 encrypted); 20 Jul 2021 18:56:33 -0000
Received: (qmail 342 invoked by uid 0); 21 Jul 2021 02:56:33 +0800
Received: from unknown (HELO m12-99.163.com) (220.181.12.99)
by 0 with SMTP; 21 Jul 2021 02:56:33 +0800
Date: 20 Jul 2021 18:56:21 -0000
Message-ID: <60F71C55.8987FA.15688>
Delivered-To: Autoresponder
To:
From:
Subject: =?utf-8?B?5rWpIOiHquWKqOWbnuWkjTogUmU6IERsTmhJPT8xNjQuNDcuMjIyLjE5P0I/b2JheiBwTWJhMTZqU3RiVDZ2NnJVOXQgYTF5N0RHMWMyIG8xUGJXIHRjdXd0NkwgR3NiWG51N0NqIHNhTyB6bzdTanNhTyAwbzdDIGpzS08wbzdhanVhTyB5MWRUUW8gYjMgam9iYz89NFFHYUxnRTRFSg==?=
X-CM-TRANSID: Y8CowAD300VVHPdgbPjZCQ–.14560S3.re
X-CM-SenderInfo: pkdrsw5dqjmli6rwjhhfrp/
References: <1626807381.11709.
— End of message stripped.