python 的csv模块问题求助
-
import csv filePath="D:\home\monk\genetic_pid_data\map.csv" csvWriter = csv.writer(open(filePath, 'wb'), delimiter=',', quotechar='/', quoting=csv.QUOTE_MINIMAL) abc =2 #如下两行都无法运行,报错 TypeError: a bytes-like object is required, not 'str' csvWriter.writerow(['www.biancheng.net'] * 5 + ['how are you']) csvWriter.writerow([abc]) ems=3
-
是python3.9 版本
-
此回复已被删除!