`
yy_gy
  • 浏览: 33628 次
  • 性别: Icon_minigender_2
社区版块
存档分类
最新评论

Pythonchallenge Level 12 (python2.7)

阅读更多
For this issue,
firstly, I downloaded the image, then I found its name was 'evil1.jpg'
ps: it would be perfect if you hold kind of curiosity! lol... because you may want to try what will happen if you try the name 'evil2.jpg'....
finally, a file named 'evil2.gfx' was downloaded.
Next,I was absolutely lost...


the code below is based on others' solutions:

>>> temp=''
>>> temp1=''
>>> temp2=''
>>> temp3=''
>>> temp4=''
#the reason for dividing this file into 5 parts comes from the initial pic
>>> for i in range(1,67575,5):
temp1=temp1+cont[i]
>>> for i in range(0,67575,5):
temp=temp+cont[i]
>>> for i in range(2,67575,5):
temp2=temp2+cont[i]
>>> for i in range(3,67575,5):
temp3=temp3+cont[i]
>>> for i in range(4,67575,5):
temp4=temp4+cont[i]
>>> open('0.jpg','w').write(temp)
>>> open('1.jpg','w').write(temp1)
>>> open('2.jpg','w').write(temp2)
>>> open('3.jpg','w').write(temp3)
>>> open('4.jpg','w').write(temp4)

5 pics are generated, put these words together then comes the answer: disproportional.html
分享到:
评论

相关推荐

    pythonchallenge level2官方方法集

    标题和描述均提到了"pythonchallenge level2官方方法集",这表明文章主要聚焦于Python Challenge网站上第二级挑战的官方解决策略集合。Python Challenge是一个知名的编程谜题网站,通过一系列精心设计的谜题来测试和...

    www.pythonchallenge.com题解第四题

    response = requests.get('http://www.pythonchallenge.com/pc/return/level4.html') html_content = response.text ``` 在处理HTML内容时,可能需要用到`BeautifulSoup`库来解析和提取有用信息。 最后,逻辑思维...

    www.pythonchallenge.com题解第三题

    response = requests.get('http://www.pythonchallenge.com/pc/return/level3.html') page_content = response.text ``` 2. **HTML解析**:接下来,你需要解析获取的HTML内容。Python的`BeautifulSoup`库可以...

    www.pythonchallenge.com题解第二题

    在Python Challenge这个在线编程挑战网站上,第二题通常是一个引导初学者进入更复杂问题的起点。这个挑战旨在帮助用户提升Python编程技能,并了解如何利用Python解决实际问题。在这个题解中,我们将深入探讨如何解开...

    www.pythonchallenge.com题解第五题

    在本题中,我们将深入探讨Python编程语言在解决在线挑战平台`www.pythonchallenge.com`上的第五个问题。这个挑战通常会涉及一系列的编程技巧、逻辑思维以及对Python库的运用。我们将通过分析提供的代码和注释,理解...

    python 实现股票分时图K线图及抓取免费level2行情

    本篇文章将深入探讨如何使用Python实现股票的分时图和K线图,并且介绍如何获取免费的Level 2行情。 首先,分时图(Time & Sales Chart)显示了一只股票在特定时间段内的交易价格和成交量,它提供了实时的价格变动...

    python2.7实现FTP文件下载功能

    在本例中,我们将探讨如何使用Python 2.7版本来完成这项任务。 首先,Python标准库中包含了一个名为`ftplib`的模块,该模块提供了与FTP服务器交互的功能。它使得实现FTP客户端变得非常简单。在上述代码中,我们看到...

    2.zip_DXF 读取 PYTHON_level9ol_phyton 读取dxf_python3 dxf_python读取d

    Python语言读取dxf文件数据,得到其中的线条及点坐标

    python-level-2:用Python编程

    使用Python进行编程:超越基础知识的现场培训 如何用Python编写Web爬虫 这是Safari Live Training的代码-使用Python编程:超越Arianne Dee提出的基础知识 在上课之前,请按照以下说明进行操作: 设定说明 1.安装...

    python logging设置level失败的解决方法

    在Python编程中,`logging`模块是一个非常重要的工具,用于记录程序运行过程中的各种信息,包括错误、警告、信息等不同级别的日志。然而,在实际使用中,有时可能会遇到设置日志级别(level)无效的问题。本文将深入...

    新浪Level2接口SDK

    level2股票、基金行情接口,Level2一般是面对机构和收费的股票数据行情 这个接口是对接的,程序员可以参考,需要的可以下载学习 朋友原创,我帮忙转到csdn来 具体描述: 调用sina level2接口,获得level2全推行情

    daftacademy-python_levelup-spring2021:Daftcode Python LevelUp课程-2021年Spring

    《Daftcode Python LevelUp课程-2021年Spring》是针对Python编程语言的一次深入学习和提升的课程,旨在帮助学员掌握Python的核心概念、语法特性以及在实际项目中的应用。作为一门全面的编程课程,它涵盖了从基础到...

    Weather Query python.zip_am2vy_hard19X_level54k_python_python城市

    标题中的“Weather Query python.zip_am2vy_hard19X_level54k_python_python城市”表明这是一个关于使用Python编程查询城市天气的项目,可能是一个压缩文件,包含相关的代码和资源。描述提到,用户可以通过输入城市...

    Coding Club Level 1 Python Programming Art by Chris Roffey PYTHO编程入门

    《Coding Club Level 1 Python Programming Art》是一本适合初学者的Python编程入门书籍。该书由Chris Roffey编写,全彩印刷,语言通俗易懂,非常适合对Python编程感兴趣的新手。 #### 书籍基本信息 - **出版信息*...

    levelset图像分割

    **Levelset图像分割技术详解** Levelset图像分割是一种在计算机视觉和图像处理领域广泛应用的高级技术,由李春明教授等人提出。这种方法结合了数学形态学和偏微分方程的理论,尤其适用于处理边界不清晰、形状复杂或...

    Python人工智能编程Level1测试.docx

    Python人工智能编程Level 1 测试 本文档总结了 Python 人工智能编程的基本概念和技术,涵盖了 Python 语言的基础知识、数据类型、变量、控制结构、函数、模块、异常处理、文件输入/输出、列表和tuple、字典、对象和...

    code_python故障诊断_python故障_fault_故障诊断_python_

    logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) try: # 可能会引发异常的代码 except Exception as e: logger.error("发生错误", exc_info=True) ``` 4. 单元测试:使用...

    Pro Python 2nd edition 英文pdf

    Pro Python 第2版,2014.12.17出版的新书 You’ve learned the basics of Python, but how do you take your skills to the next stage? Even if you know enough to be productive, there are a number of ...

Global site tag (gtag.js) - Google Analytics