【发布时间】:2021-04-21 08:38:16
【问题描述】:
我在 jupyter notebook 中有一个 python 项目,我想用乳胶显示最终输出。
x = 5
print("The number you have inputted is ", complex(x, y), " ^ 1/", n, sep = '')
我希望使用乳胶对其进行格式化:
我阅读了一堆论坛,但分数不适用于 2 位数字
n=10
from IPython.display import display, Markdown
display(Markdown(rf"""$ { complex(x, y) } ^ \frac{1}{n} $"""))
我能得到的最好的:
任何建议都会非常有帮助:)
【问题讨论】:
标签: python jupyter-notebook latex