我正在使用以下示例:
我想按照概述制定它自己的定义,然后根据需要调用它,如下所示:
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)
无论我输入什么,总是打印"不工作".任何指导都会非常感激!
我正在尝试以下列格式查找链接:
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)
我到目前为止(没有功能)是这样的.我真的不熟悉前瞻性断言,所以我可能走错了路.
无论如何,任何帮助将不胜感激!
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)