chewing commited on
Commit
0882770
1 Parent(s): f583104

add project files

Browse files
.idea/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
.idea/inspectionProfiles/Project_Default.xml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
5
+ <option name="ignoredPackages">
6
+ <value>
7
+ <list size="14">
8
+ <item index="0" class="java.lang.String" itemvalue="numpy" />
9
+ <item index="1" class="java.lang.String" itemvalue="pypinyin" />
10
+ <item index="2" class="java.lang.String" itemvalue="protobuf" />
11
+ <item index="3" class="java.lang.String" itemvalue="jieba" />
12
+ <item index="4" class="java.lang.String" itemvalue="unidecode" />
13
+ <item index="5" class="java.lang.String" itemvalue="jamo" />
14
+ <item index="6" class="java.lang.String" itemvalue="ko_pron" />
15
+ <item index="7" class="java.lang.String" itemvalue="pyopenjtalk" />
16
+ <item index="8" class="java.lang.String" itemvalue="opencc" />
17
+ <item index="9" class="java.lang.String" itemvalue="cn2an" />
18
+ <item index="10" class="java.lang.String" itemvalue="eng_to_ipa" />
19
+ <item index="11" class="java.lang.String" itemvalue="indic_transliteration" />
20
+ <item index="12" class="java.lang.String" itemvalue="inflect" />
21
+ <item index="13" class="java.lang.String" itemvalue="num_thai" />
22
+ </list>
23
+ </value>
24
+ </option>
25
+ </inspection_tool>
26
+ </profile>
27
+ </component>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -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>
.idea/liandan.iml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
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="jdk" jdkName="Python 3.7" jdkType="Python SDK" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
.idea/misc.xml ADDED
@@ -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" project-jdk-type="Python SDK" />
4
+ </project>
.idea/modules.xml ADDED
@@ -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/liandan.iml" filepath="$PROJECT_DIR$/.idea/liandan.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
src/__pycache__/check_backpack.cpython-37.pyc CHANGED
Binary files a/src/__pycache__/check_backpack.cpython-37.pyc and b/src/__pycache__/check_backpack.cpython-37.pyc differ
 
src/__pycache__/check_backpack.cpython-39.pyc ADDED
Binary file (2.68 kB). View file
 
src/__pycache__/gr_func.cpython-39.pyc ADDED
Binary file (7.18 kB). View file
 
src/check_backpack.py CHANGED
@@ -71,6 +71,10 @@ def sort_yaocai(text,medicine_select,material_num):
71
 
72
  flag = material_need_dict.get(name)
73
  if flag is not None:
74
- flag = "+" if num>=flag else "-"
 
 
 
 
75
  rtn.append((name,grade,num,flag))
76
  return rtn
 
71
 
72
  flag = material_need_dict.get(name)
73
  if flag is not None:
74
+ if num >= flag:
75
+ flag = "+"
76
+ else:
77
+ num = f"{num}({flag})"
78
+ flag = "-"
79
  rtn.append((name,grade,num,flag))
80
  return rtn
src/db.json ADDED
File without changes