我正在尝试将数学表达式放入 github 上的 README.md 文件中。所以我关注了 github 上的文档:https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions
$$ 概率 = 0.689 + 0.392 = 1.081 = 108.1 % $$
%
没有显示,因为据我所知,它是为评论保留的。
尝试过
\%
,%%
但仍然没有。在网上搜索但没有成功
如果有人对此有问题:\% 解决了它..只是因为在 stackoverflow 上没有这样的问题
所以完整的等式是:
$$ Probability = 0.689 + 0.392 = 1.081 = 108.1 \\% $$
$$ Probability = 0.689 + 0.392 = 1.081 = 108.1\% $$