Day 1:Inverse Captcha

Day1 好久没做题了,这次是一次函数式编程语言的回归与练习 Part 1 第一部分大致讲解了就是一个旋转的情况, 我用手绘图描述一下,基本就懂了 具体实现: 1 2 3

Trick in Python

下面会介绍一下有趣的技巧,来源于PythonDiscord1和Reddit2 F-strings List Comprehensions DataClass Matrix F-strings 看到一个有趣的用法,之前自己没见过2 1 2 3 foos = [1, 2] bar,

Higher-Order Function

Lab02 lambda_curry 匿名函数的柯理化 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 def lambda_curry2(func): """ Returns a Curried version of a two-argument function FUNC. >>> from operator import add, mul, mod >>> curried_add = lambda_curry2(add) >>> add_three = curried_add(3) >>> add_three(5) 8 >>> curried_mul = lambda_curry2(mul) >>> mul_5 = curried_mul(5) >>> mul_5(42) 210 >>> lambda_curry2(mod)(123)(10) 3

Learn C++ with ChatGPT

原链接: CourseWork 个人Repo Outline 这个c++作业 有2个部分: 第一部分实现一个消息类和服务器类 以及用户类(用于互相传送信息) 这部分你需要了解 类 ,继承, 多

house-robber

198.house-robber Description You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent houses were broken into on the same night. Given an integer array nums representing the amount of money of