这是我的代码,它的大部分工作,它打开的网址,但网址包含'‘,这是无效的,当试图打开一个链接。如何在使用webbrowser.open之前删除它们?import time, csv, webbrowser
with open(r'C:\Users\Documents\list_of_url.csv') as csv_filehttps://1178
我使用Requests模块来授权,然后从web API中提取csv内容,并让它在Python2.7中运行得很好。我现在想用Python3.5编写相同的脚本,但遇到了一些问题:
"iterator should return strings, not bytes (did you open the file inrequests.get似乎返回字节而不是字符串,这似乎与迁移到Python3.x时出现的编码问题