我的脚本中的Python语法错误

时间:2018-06-25 10:24:34

标签: python syntax

text = open(name + ".txt", "w")  

text.write(con_person + "\n" + con_key_words_list+ "\n" + con_person_rand + "\n" + con_person_rev_rand + "\n" + con_person_up_rand + "\n" + con_person_up_rev_rand + "\n" + con_key_words_list_rand + "\n" + con_key_words_list_rev_rand + "\n" + con_per_per + "\n" + con_per_perrev + "\n" + con_per_perup + "\n" + con_per_kw + "\n" + con_per_kwr + "\n" + con_per_brith02 + "\n" + con_per_brith04 + "\n" + con_per_brith06 + "\n" + con_per_brith68 + "\n" + con_per_rev_brith02 + "\n" + con_per_rev_brith04 + "\n" + con_per_rev_brith06 + "\n" + con_per_rev_brith68 + "\n" con_kw_per + "\n" + con_kw_per_rev + "\n" + con_kw_per_up + "\n" + con_kw_per_up_rev + "\n" + con_kw_kw + "\n" + con_kw_kwr + "\n" + con_kw_brith02 + "\n" + con_kw_brith04 + "\n" + con_kw_brith06 + "\n" + con_kw_brith68 + "\n" + con_kwr_kwr + "\n" + con_kwr_kw + "\n" + con_kwr_brith02 + "\n" + con_kwr_brith04 + "\n" + con_kwr_brith06 + "\n" + con_kwr_brith68)

text.close()

E0001:语法无效(第259行) 我没有看到这行有什么问题,请帮忙。

1 个答案:

答案 0 :(得分:5)

@DLYTRNTable

con_per_rev_brith68 + "\n" con_kw_per + "\n" +

长时间编写代码时,也很难抓住这样的东西

例如:

con_per_rev_brith68 + "\n" + con_kw_per + "\n" +