Browse Source

first commit

shaoyx 4 years ago
commit
28812ce86a
7 changed files with 136 additions and 0 deletions
  1. 6 0
      .idea/inspectionProfiles/profiles_settings.xml
  2. 4 0
      .idea/misc.xml
  3. 8 0
      .idea/modules.xml
  4. 11 0
      .idea/untitled.iml
  5. 6 0
      .idea/vcs.xml
  6. 91 0
      .idea/workspace.xml
  7. 10 0
      hello.py

+ 6 - 0
.idea/inspectionProfiles/profiles_settings.xml

@@ -0,0 +1,6 @@
1
+<component name="InspectionProjectProfileManager">
2
+  <settings>
3
+    <option name="USE_PROJECT_PROFILE" value="false" />
4
+    <version value="1.0" />
5
+  </settings>
6
+</component>

+ 4 - 0
.idea/misc.xml

@@ -0,0 +1,4 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7 (venv)" project-jdk-type="Python SDK" />
4
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/.idea/untitled.iml" filepath="$PROJECT_DIR$/.idea/untitled.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 11 - 0
.idea/untitled.iml

@@ -0,0 +1,11 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="PYTHON_MODULE" version="4">
3
+  <component name="NewModuleRootManager">
4
+    <content url="file://$MODULE_DIR$" />
5
+    <orderEntry type="inheritedJdk" />
6
+    <orderEntry type="sourceFolder" forTests="false" />
7
+  </component>
8
+  <component name="TestRunnerService">
9
+    <option name="PROJECT_TEST_RUNNER" value="Unittests" />
10
+  </component>
11
+</module>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 91 - 0
.idea/workspace.xml

@@ -0,0 +1,91 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="ed53206b-22c9-459a-8e53-942fa11e7d62" name="Default Changelist" comment="" />
5
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+    <option name="SHOW_DIALOG" value="false" />
7
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
8
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
9
+    <option name="LAST_RESOLUTION" value="IGNORE" />
10
+  </component>
11
+  <component name="FileTemplateManagerImpl">
12
+    <option name="RECENT_TEMPLATES">
13
+      <list>
14
+        <option value="Python Script" />
15
+      </list>
16
+    </option>
17
+  </component>
18
+  <component name="Git.Settings">
19
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
20
+  </component>
21
+  <component name="ProjectId" id="1TVl51RmUTqvO1mM1mRpfGX2KqN" />
22
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
23
+  <component name="PropertiesComponent">
24
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
25
+    <property name="settings.editor.selected.configurable" value="com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable" />
26
+  </component>
27
+  <component name="RunDashboard">
28
+    <option name="ruleStates">
29
+      <list>
30
+        <RuleState>
31
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
32
+        </RuleState>
33
+        <RuleState>
34
+          <option name="name" value="StatusDashboardGroupingRule" />
35
+        </RuleState>
36
+      </list>
37
+    </option>
38
+  </component>
39
+  <component name="RunManager">
40
+    <configuration name="hello" type="PythonConfigurationType" factoryName="Python" temporary="true">
41
+      <module name="untitled" />
42
+      <option name="INTERPRETER_OPTIONS" value="" />
43
+      <option name="PARENT_ENVS" value="true" />
44
+      <envs>
45
+        <env name="PYTHONUNBUFFERED" value="1" />
46
+      </envs>
47
+      <option name="SDK_HOME" value="" />
48
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
49
+      <option name="IS_MODULE_SDK" value="true" />
50
+      <option name="ADD_CONTENT_ROOTS" value="true" />
51
+      <option name="ADD_SOURCE_ROOTS" value="true" />
52
+      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/hello.py" />
53
+      <option name="PARAMETERS" value="" />
54
+      <option name="SHOW_COMMAND_LINE" value="false" />
55
+      <option name="EMULATE_TERMINAL" value="false" />
56
+      <option name="MODULE_MODE" value="false" />
57
+      <option name="REDIRECT_INPUT" value="false" />
58
+      <option name="INPUT_FILE" value="" />
59
+      <method v="2" />
60
+    </configuration>
61
+    <recent_temporary>
62
+      <list>
63
+        <item itemvalue="Python.hello" />
64
+      </list>
65
+    </recent_temporary>
66
+  </component>
67
+  <component name="SvnConfiguration">
68
+    <configuration />
69
+  </component>
70
+  <component name="TaskManager">
71
+    <task active="true" id="Default" summary="Default task">
72
+      <changelist id="ed53206b-22c9-459a-8e53-942fa11e7d62" name="Default Changelist" comment="" />
73
+      <created>1573552957457</created>
74
+      <option name="number" value="Default" />
75
+      <option name="presentableId" value="Default" />
76
+      <updated>1573552957457</updated>
77
+    </task>
78
+    <servers />
79
+  </component>
80
+  <component name="Vcs.Log.Tabs.Properties">
81
+    <option name="TAB_STATES">
82
+      <map>
83
+        <entry key="MAIN">
84
+          <value>
85
+            <State />
86
+          </value>
87
+        </entry>
88
+      </map>
89
+    </option>
90
+  </component>
91
+</project>

+ 10 - 0
hello.py

@@ -0,0 +1,10 @@
1
+x = int(input("Please enter an integer:"))
2
+if x < 0:
3
+    x = 0
4
+    print('Negative changed to zero')
5
+elif x == 0:
6
+    print('Zero')
7
+elif x == 1:
8
+    print('Single')
9
+else:
10
+    print('More')