摘要:
最近对Python是异常喜爱,看完了Vamei大神的python快速教程(看到标准库不想看了),做了一些leetCode题目熟悉了一下基本语法,然后准备用Scarpy爬网页,然后用collaborate filler算法做一个电影推荐系统。昨天学了一天Scarpy,今天本来准备继续学,发现一门U... 阅读全文
摘要:
题目网址:https://oj.leetcode.com/problems/add-two-numbers/题目描述:You are given two linked lists representing two non-negative numbers. The digits are stored... 阅读全文
摘要:
题目网址:https://oj.leetcode.com/problems/single-number/题目描述:Given an array of integers, every element appears twice except for one. Find that single one.... 阅读全文
摘要:
今天查if-else的时候发现了下面这篇文章,2、3之前都没见过,4花了一段时间才看明白(Tips:short circuit)Python中if-else语句的多种写法1.常规ifa>b:c=aelse:c=b2.表达式c=aifa>belseb3.二维列表c=[b,a][a>b]4.传说是源自某... 阅读全文