Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Licensed under the Apache License, Version 2.0 (the "License");
  2. # you may not use this file except in compliance with the License.
  3. # You may obtain a copy of the License at
  4. #
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. #
  7. # Unless required by applicable law or agreed to in writing, software
  8. # distributed under the License is distributed on an "AS IS" BASIS,
  9. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. # See the License for the specific language governing permissions and
  11. # limitations under the License.
  12. #
  13. TBL = {
  14. "94": "EMBA",
  15. "6": "MBA",
  16. "95": "MPA",
  17. "92": "专升本",
  18. "4": "专科",
  19. "90": "中专",
  20. "91": "中技",
  21. "86": "初中",
  22. "3": "博士",
  23. "10": "博士后",
  24. "1": "本科",
  25. "2": "硕士",
  26. "87": "职高",
  27. "89": "高中",
  28. }
  29. TBL_ = {v: k for k, v in TBL.items()}
  30. def get_name(id):
  31. return TBL.get(str(id), "")
  32. def get_id(nm):
  33. if not nm:
  34. return ""
  35. return TBL_.get(nm.upper().strip(), "")