小编Dan*_*car的帖子

无法为 python 安装此 manim 库

我正在尝试安装manim,(请参阅此处:https : //github.com/3b1b/manim)。我正在使用 python 版本 3.7.7。我已经按照这个视频https://www.youtube.com/watch?v=ZltiKHFWmv8的步骤操作,直到我尝试安装 requirements.txt ( https://github.com/3b1b/manim/blob/master/要求.txt)。我在终端上收到此错误:

错误:找不到满足要求 requirements.txt 的版本(来自版本:无)

错误:没有找到 requirements.txt 的匹配分布

有谁知道如何修理它?

python-3.x manim

3
推荐指数
1
解决办法
376
查看次数

翻译使用字典

我正在尝试解决一个问题,可以在第13.2.4节中的Pieter Spronck编写的The Coder's Apprentice中找到.这是我到目前为止编写的代码:

english_dutch = {"last":"laatst", "week":"week", "the":"de", "royal":"koninklijk",
    "festival":"feast", "hall":"hal", "saw":"zaag", "first":"eerst", "performance":"optreden",
    "of":"van", "a":"een", "new":"nieuw", "symphony":"symphonie", "by":"bij",
    "one":"een", "world":"wereld", "leading":"leidend", "modern":"modern",
    "composer":"componist", "composers:componisten" "two":"twee", "shed":"schuur", "sheds":"schuren"}

text = "Last week The Royal Festival Hall saw the first \
 performance of a new symphony by one of the world's leading \
 modern composers, Arthur 'Two-Sheds' Jackson."


def clean(t):
    t = t.lower()
    t = t.split()
    new_t = ""
    for word in t:
        new_word = ""
        for letter …
Run Code Online (Sandbox Code Playgroud)

python dictionary python-3.6

2
推荐指数
1
解决办法
66
查看次数

C 语言:scanf 和 sscanf 表达式

我在 scanf 和 sscanf 参数中遇到过类似这样的表达式:

sscanf(buffer, "%d,%100[^,]%*c%f", destination_pointer)
Run Code Online (Sandbox Code Playgroud)

或者

scanf("\n%99s", destination);
Run Code Online (Sandbox Code Playgroud)

解释这些的正确方法是什么?我知道“%s %c %d”之类的东西是什么,而且 %100 或通常的“%number”是要读取的输入的大小。但是剩下的呢?我能找到的只是基本的例子,没有接近这个复杂的东西。有参考指南吗?

c scanf

2
推荐指数
1
解决办法
59
查看次数

标签 统计

c ×1

dictionary ×1

manim ×1

python ×1

python-3.6 ×1

python-3.x ×1

scanf ×1