const 课程地址 = "http://icourse8.com/vue2_qunaer.html";
章节信息
第 1 章 课程介绍
第 2 章 Vue 起步
第 3 章 Vue 基础精讲
第 4 章 深入理解 Vue 组件
第 5 章 Vue 中的动画特效
第 6 章 Vue 项目预热
第 7 章 项目实战 - 旅游网站首页开发
第 8 章 项目实战 - 旅游网站城市列表页面开发
第 9 章 项目实战 - 旅游网站详情页面开发
第 10 章 实战项目 - 项目的联调, 测试与发布上线
- class Solution:
- def addTwoNumbers(self, l1, l2):
- """
- :type l1: ListNode
- :type l2: ListNode
- :rtype: ListNode
- """
- re = ListNode(0)
- r=re
- carry=0
- while(l1 or l2):
- x= l1.val if l1 else 0
- y= l2.val if l2 else 0
- s=carry+x+y
- carry=s//10
- r.next=ListNode(s%10)
- r=r.next
- if(l1!=None):l1=l1.next
- if(l2!=None):l2=l2.next
- if(carry>0):
- r.next=ListNode(1)
- return re.next
来源: http://www.bubuko.com/infodetail-3110505.html