这是我第一次在堆栈溢出中发帖。也许我可以得到我需要的解决方案。
busdata=shelve.open("Database") for lctno in busdata.keys(): outputLine( lctno , busdata[ lctno ])
它随机显示我的 .dat 文件中的数据。我希望它按升序显示。
python shelve
python ×1
shelve ×1