上传者: 38640117
|
上传时间: 2022-01-02 15:18:48
|
文件大小: 60KB
|
文件类型: -
将电话簿TeleAddressBook.txt和电子邮件EmailAddressBook.txt合并为一个完整的AddressBook.txt
def main():
ftele1=open("d:\TeleAddressBook.txt","rb")
ftele2=open("d:\EmailAddressBook.txt","rb")
ftele1.readline()
ftele2.readline()
lines1=ftele1.readlines()
lines2=ftele2.readlines()
#建立空列表用于存储姓名电话Email
list