Since the lines in the address are separated by normal line separators (the "\ n" character), the code needs to replace these with XHTML-style line separators, s.
因为地址中的行用一般的行分隔符(“\n”字符)分隔,代码中需要用XHTML风格的行分隔符来代替。
([toStr(e)+'\n' for e in employeeList] uses Jython's list comprehension to turn each result into a line written in slaries.txt with the lambda function toStr.
([toStr(e)+'\n'for ein employeeList]) 通过Jython的列表理解,用lambda 函数 toStr将每个结果变成 slaries.txt中的一行。
([toStr(e)+'\n' for e in employeeList] uses Jython's list comprehension to turn each result into a line written in slaries.txt with the lambda function toStr.
([toStr(e)+'\n'for ein employeeList]) 通过Jython的列表理解,用lambda 函数 toStr将每个结果变成 slaries.txt中的一行。
应用推荐