Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

degrees.py 940B

12345678910111213141516171819202122232425262728293031323334353637
  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 = {"94":"EMBA",
  14. "6":"MBA",
  15. "95":"MPA",
  16. "92":"专升本",
  17. "4":"专科",
  18. "90":"中专",
  19. "91":"中技",
  20. "86":"初中",
  21. "3":"博士",
  22. "10":"博士后",
  23. "1":"本科",
  24. "2":"硕士",
  25. "87":"职高",
  26. "89":"高中"
  27. }
  28. TBL_ = {v:k for k,v in TBL.items()}
  29. def get_name(id):
  30. return TBL.get(str(id), "")
  31. def get_id(nm):
  32. if not nm:return ""
  33. return TBL_.get(nm.upper().strip(), "")