addRow.py

def addRow(row, strLines, sep = "|"):
strTemp = ""
for i in range(len(row)):
strTemp += row[i].replace(sep, " ") + sep
return strLines + strTemp[:-1] + "\n"
posted @ 2021-10-05 20:19  石棠  阅读(30)  评论(0编辑  收藏  举报