Use """string_literal"""
instead of "string_literal"
or 'string_literal'
.
(使用"""string_literal"""
代替"string_literal"
或'string_literal'
。)
"""string_literal""" is for multi line strings. (“”“ string_literal”“”用于多行字符串。)
This will work. (这将起作用。)
def myfunc():
str = """"""
with open("employees.html") as report_file:
raw_html = report_file.readlines()
str = """""".join(raw_html)
return str
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…