![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Maru_Lim
寡言
展开
-
python2用python3的除法
python2默认/为整除,python3为浮点除。若python2也想浮点除,则需要头文件添加:from __feature__ import absolute_importfrom __feature__ import divisionfrom __feature__ import print_function...原创 2019-03-20 10:08:09 · 318 阅读 · 0 评论 -
剑指offer删除链表中重复结点
别人方法: class Solution: def deleteDuplication(self, pHead): # write code here ret= ListNode(0) real= ret pre= ret cur= pHe...原创 2019-06-19 15:10:52 · 134 阅读 · 0 评论