这是一篇包含Latex的测试文章
公式
∑ α = 1 10 α ⋅ x 2 \sum_{\alpha = 1}^{10}\alpha \cdot x^{2} α=1∑10α⋅x2
图片
![image.png](https://img-blog.csdnimg.cn/img_convert/3987d52280aabadf2a8975676475cefb.png#clientId=u4c42f6ff-93d3-4&from=paste&height=399&id=u4d96a0fe&margin=[object Object]&name=image.png&originHeight=399&originWidth=1035&originalType=binary&ratio=1&size=34477&status=done&style=none&taskId=u8835a29e-0079-477d-8af2-f18579deab9&width=1035)
![aaa](https://img-blog.csdnimg.cn/img_convert/3987d52280aabadf2a8975676475cefb.png#clientId=u4c42f6ff-93d3-4&from=paste&height=399&id=u4d96a0fe&margin=[object Object]&name=image.png&originHeight=399&originWidth=1035&originalType=binary&ratio=1&size=34477&status=done&style=none&taskId=u8835a29e-0079-477d-8af2-f18579deab9&width=1035)
代码
from yuque_py import Yuque
zhishiku = "python"
client=Yuque(api_host="https://www.yuque.com/api/v2",user_token="HrFgAkhQg08yk30ovFv11Mvbp8zMePfN0oI5MLv0")
login = client.users.get()['data']['login']
repos = client.repos.list(login)['data']
target_repo = None
for repo in repos:
if repo['name'] == zhishiku:
target_repo = repo
break
if target_repo is None:
raise Exception("No such repo")
repo_slug = target_repo['slug']
repo_TOC = client.repos.get(namespace = '/'.join([login, repo_slug, 'toc']))['data']
# 拿到repo的TOC后,这里需要灵活调整
doc0 = repo_TOC[0]
doc0_slug = doc0['slug']
doc_detail = client.docs.get(namespace='/'.join([login, repo_slug]), slug=doc0_slug)['data']
print()
换行
1
2
3