name = "wangyang" age = " with open("C:/Users/mike1/Desktop/name_age.txt", "w", encoding = "utf-8") as f1: f1.write("hellow world") 这么写是不行的,文件名是name_age.txt,而不是wangyang_25.txt. 如下图: 正确的方式应该是用format()函…
eclipse提示警告如下: Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment. 1.打开settings.xml文件 2.找到profiles标签 3.加入如下配置: <profile> <id>jdk1.8</id> &l…