![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python面试题
丶Axe
Life is short, I use Python.
展开
-
剑指offer题解 Python Solution
@TOC 1.二维数组中的查找 题目描述 在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 解法: class Solution: def Find(self, target, array): if not array: ...原创 2019-10-22 14:09:36 · 1942 阅读 · 0 评论 -
Python Interview.
Table of Contents Python语言特性 1 Python的函数参数传递 2 Python中的元类(metaclass) 3 @staticmethod和@classmethod 4 类变量和实例变量 5 Python自省 6 字典推导式 7 Python中单下划线和双下划线 8 字符串格式化:\x和.format 9 迭代器和生成器 10 *args and **kwarg...转载 2019-07-13 00:05:38 · 531 阅读 · 0 评论 -
LeetCode *24. Swap Nodes in Pairs (Python Solution)
题目描述 Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list’s nodes, only nodes itself may be changed. 给定链表,交换每两个相邻结点并返回其头部。 您可能无法修改列表结点中的值,只...原创 2019-09-03 11:39:17 · 133 阅读 · 0 评论