23  问题汇总

这里记录Quarto使用中遇到的问题,有的问题已经有解,有的问题暂时未找到解决方案。

如果您知道相关的解决方法,欢迎联系作者!

  1. 报错json.decoder.JSONDecodeError,应该与使用单引号或双引号有关,但具体原因不详。推测:同一篇文档中的字符串外围引号,统一用单引号,能规避此错误。如果含有双引号,可能会报错。
```{python}
# 测试各种数字字符
test_cases = ["123", "①", "五","Ⅳ", "1.23", "1,000"]
print("字符\tdigit\tnumeric")
print("-" * 20)
for case in test_cases:
    print(case, case.isdigit(), case.isnumeric(), sep = "\t")
```