首页 > TAG信息列表 > hogwarts

python闭包函数&装饰器

一、函数引用 函数可以被引用 函数可以被赋值给一个变量 def hogwarts(): print("hogwarts") # hogwarts() # 函数调用 print(hogwarts) print('----------------') harry = hogwarts # 把函数对象赋值给一个变量 print(harry) print('----------------') harry() #

PAT-A1058 A+B in Hogwarts (钱币转换)

A1058 A+B in Hogwarts (钱币转换) If you are a fan of Harry Potter, you would know the world of magic has its own currency system – as Hagrid explained it to Harry, “Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it’s easy eno

python 常见数据结构

大纲 列表元组集合字典 列表 定义 Python 中可以通过组合一些值得到多种复合数据类型。 列表是其中最常用得数据结构 列表通过方括号起,逗号分隔的一组值得到 一个列表可以包含不同类型的元素,但通常使用时各个元素类型相同 列表的特性 list.append(x): 在列表的末尾添加一个元

HOGWARTS: BELLATRIX

靶机地址:https://www.vulnhub.com/entry/hogwarts-bellatrix,609/   攻击机ip:192.168.99.128 靶机地址ip:192.168.99.144 扫描靶机端口,开放了22、80 访问80端口 查看网页源代码,有个目录的.php文件存在文件包含 网页源码有存在一个.php文件,参数是file 存在文件包含 http://i

UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 68: illegal multib

  import yaml def test_yaml(): f = open('C:\hogwarts\Scripts\hogwarts-api\demo\yaml_data.yml') print(yaml.load(f))  # 改进: import yamldef test_yaml(): f = open('C:\hogwarts\Scripts\hogwarts-api\demo\yaml_data.yml',

1058 A+B in Hogwarts (20分)

  If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it's easy enough." Your job is t

PTA(Basic Level)1058.A+B in Hogwarts

If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Sickle, it's easy enough." Your job is to