Browse Source

设置jdk1.8

liuyuqi-dellpc 7 years ago
parent
commit
8da7e420fd
2 changed files with 12 additions and 6 deletions
  1. 5 5
      .classpath
  2. 7 1
      python/txtConvert.py

+ 5 - 5
.classpath

@@ -1,11 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" path="java/src"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
 	<classpathentry kind="src" output="target/classes" path="src">
 		<attributes>
 			<attribute name="optional" value="true"/>
@@ -17,5 +12,10 @@
 			<attribute name="maven.pomderived" value="true"/>
 		</attributes>
 	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+		<attributes>
+			<attribute name="owner.project.facets" value="java"/>
+		</attributes>
+	</classpathentry>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

+ 7 - 1
python/txtConvert.py

@@ -13,7 +13,13 @@ def readTxt(filePath):
 
 def writeTxt():
     f=open('../data/data.txt', 'w')
-    f.write('hello========hello======\n  he llo\n')
+    f.write('hello========hello======\n  hello\n')
     f.close()#一定要记得close,否则其他软件打开为只读
 
 
+
+filePath=""
+def main():
+    readTxt(filePath)
+
+main()