我正在完成chapter 12 of Real World Haskell。在本章中,作者解释了如何使用EAN13 encoding执行条形码识别。 我转载的大多数代码从the book snippets into my repo,当我终于来到检查是否按预期工作在我的超过300行的代码,我得到了一个坏消息: -- Finding the Correct Sequence
*Main> let i
我有一段代码,在Python3效果很好: def encode_test(filepath, char_to_int):
with open(filepath, "r", encoding= "latin-1") as f:
dat = [line.rstrip() for line in f]
string_to_int = [[char_to_int[char