本文整理汇总了Python中pyfiglet.Figlet.endswith方法的典型用法代码示例。如果您正苦于以下问题:Python Figlet.endswith方法的具体用法?Python Figlet.endswith怎么用?Python Figlet.endswith使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pyfiglet.Figlet
的用法示例。
在下文中一共展示了Figlet.endswith方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: str
# 需要导入模块: from pyfiglet import Figlet [as 别名]
# 或者: from pyfiglet.Figlet import endswith [as 别名]
while True:
try:
'''Do you want to examine:
[1] APK
[2] Source'''
print str('Do you want to examine:\n[1] APK\n[2] APKS\n[3] QUIT\n').decode('string-escape').format()
choice = str(raw_input('Enter your choice:')).strip()
if int(choice) in (1, 2):
break
if int(choice) == 3:
exit()
except Exception as e:
print e
if int(choice) == 1:
print str('Please enter the full path to your APK (ex. g:\sample\sample.apk):').decode('string-escape').format()
apkPath = str(raw_input('Path:')).strip()
obj.start(apkPath)
elif int(choice) == 2:
print str('Please enter the full path to your APK (ex. g:\sample):').decode('string-escape').format()
apkPath = str(raw_input('Path:')).strip()
for rt, dirs, files in os.walk(apkPath):
for f in files:
if f.endswith(".apk"):
path_list.append(os.path.join(rt, f))
for path in path_list:
obj.start(path)