会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
daxiangcai
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
9
10
11
12
13
14
15
16
17
···
41
下一页
2022年9月
pip 升级命令
摘要: pip install --upgrade manim
阅读全文
posted @ 2022-09-05 22:51 树叶本子
阅读(65)
评论(0)
推荐(0)
2022年8月
manim 2.0
摘要: 这个版本已经几乎是无法优化的最佳版本了 函数部分 %%manim -v WARNING -ql s1 class s1(ThreeDScene): def construct(self): # 预定义 if True: r = RIGHT;l = LEFT;d = DOWN;u = UP;d = D
阅读全文
posted @ 2022-08-27 15:41 树叶本子
阅读(85)
评论(0)
推荐(0)
manim 废弃方法
摘要: xxp align # xxp align def xa(b, a): l = len(a) for i in range(0, l): b[i].set_x(a[i].get_x()) if i > 0: b[i].set_y(b[0].get_y()) View Code
阅读全文
posted @ 2022-08-20 20:04 树叶本子
阅读(25)
评论(0)
推荐(0)
exec()和eval()的缺点
摘要: 前者无法执行含有自定义函数的代码,后者无法进行赋值操作
阅读全文
posted @ 2022-08-20 19:51 树叶本子
阅读(21)
评论(0)
推荐(0)
manim 1.0 优化
摘要: 例: tf=xtf2(1,'Demyanov和Tiffen-Demyanov 重排').to_corner(UL) t1=xn('脂肪族伯胺重氮化反应中发生的扩环或缩环反应称为 Demyanov 重排');t2=xn('若脂肪环上连有氨甲基,重排生成扩环的产物');t3=xn('若脂肪环上直接连有氨
阅读全文
posted @ 2022-08-20 16:14 树叶本子
阅读(44)
评论(0)
推荐(0)
manim 1.0
摘要: 代码结构: %%manim -v WARNING -ql s1 class s1(Scene): def construct(self): if type('xxp') == str: if type('manim CE') == str: if type('other function') ==
阅读全文
posted @ 2022-08-20 14:11 树叶本子
阅读(70)
评论(0)
推荐(0)
碳正离子的重排
摘要: functions # xxp if type('xxp') == str: # xxp transform def xt(names, *args): def pretrans0(name, i): if type(i) == int: back = name + '[' + str(i) + '
阅读全文
posted @ 2022-08-20 08:28 树叶本子
阅读(206)
评论(0)
推荐(0)
报错 TypeError: '>=' not supported between instances of 'SVGPathMobject' and 'SVGPathMobject'的解决方法
摘要: 使用manim的时候发现报错,解决方法是: 将 self.play(DrawBorderThenFill(a1,a2)) 改为 self.play(DrawBorderThenFill(a1), DrawBorderThenFill(a2))
阅读全文
posted @ 2022-08-11 14:40 树叶本子
阅读(55)
评论(0)
推荐(0)
xt()使用注意点
摘要: 目前遇到的报错解决方法: 1、中括号没有匹配好 2、错数了个数,导致重复删除,这样remove时x不存在
阅读全文
posted @ 2022-08-10 20:58 树叶本子
阅读(67)
评论(0)
推荐(0)
错误的方法
摘要: def xcsd(*args): n = 0 li1 = [] li2 = [] for i in args: n += 1 if n % 2 != 0: li1.append(i) else: li2.append(i) li3 = '' li4 = '' for i in range(len(l
阅读全文
posted @ 2022-08-10 08:40 树叶本子
阅读(20)
评论(0)
推荐(0)
上一页
1
···
9
10
11
12
13
14
15
16
17
···
41
下一页
公告