小编Pub*_*ert的帖子

Python是/否def

我正在使用以下示例:

APT命令行界面 - 是/否输入?

我想按照概述制定它自己的定义,然后根据需要调用它,如下所示:

def log_manager():  
    question = "Do you wish to continue?"  
    choice = query_yes_no_quit(question, default="yes")  
        if choice == 'y':  
            print ("you entered y")  
        else:     
            print ("not working")  
Run Code Online (Sandbox Code Playgroud)

无论我输入什么,总是打印"不工作".任何指导都会非常感激!

python prompt

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

正则表达式找到http和.html

我正在尝试以下列格式查找链接:

http://subdomain.subdomain.domain.tld/subfolder/randomstring.html
Run Code Online (Sandbox Code Playgroud)

基本上,我需要一个正在查找http://并在找到时停止查找的正则表达式.html.介于两者之间的一切都无所谓.即,更多/更少的子域,可变TLD和变量文件夹.

这可能吗?

((http://)?=(.html))
Run Code Online (Sandbox Code Playgroud)

我到目前为止(没有功能)是这样的.我真的不熟悉前瞻性断言,所以我可能走错了路.

无论如何,任何帮助将不胜感激!

html regex

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

m3u8-segmenter没有编译

root@ip-**-**-**-**:/home/jeff/m3u8-segmenter# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we …
Run Code Online (Sandbox Code Playgroud)

ffmpeg compilation m3u

0
推荐指数
1
解决办法
532
查看次数

标签 统计

compilation ×1

ffmpeg ×1

html ×1

m3u ×1

prompt ×1

python ×1

regex ×1