这是我的代码。我必须在这里添加一个完整的列表:(http://pastebin.com/u5S0rF9D)到一个列表中,我该怎么做?这是我导入 python 的 excel 文件(https://docs.google.com/spreadsheet/ccc?key=0Atza5UMAhSHRdHJMWGZqZlRrZWpySnU1SHhKOXFlN2c#gid=0)我应该将什么“附加”到maleList中?
import random
gender = raw_input("Enter your character gender (Male/Female): ")
start = raw_input("Enter Please enter starting letter of name(A to B): ")
import csv
readerFileHandle = open("Book1.csv", "rb")
malenames = csv.reader(readerFileHandle)
for row in malenames:
y = []
for x in row:
if x[-1] == '\xa0':
y.append(x[:-2])
else:
y.append(x)
for z in y:
print z
maleList = []
maleList.append()
print maleList
readerFileHandle.close()