元素池
这是一个用于业余无线电考试元素问题池的 Python 解析器。 这是针对 2014 Element 2(技术员类)问题池进行测试和构建的。
用法
您只需要一个文件名。
import ElementPool
# Instantiate an object using the file path
pool = ElementPool . ElementPool ( 'pools/2014-2018 Tech Pool.txt' )
# To get at the raw data structures, you can call sortedQuestions()
sortedQs = pool . sortedQuestions ()
# If you don't care if they're sorted
unsorted = pool . questions
# You c