leetcode 练习

摘要: 1.从排序数组中删除重复项 class Solution(object): def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ length=len(nums) if length==0: retur 阅读全文
posted @ 2019-03-01 13:03 不化雪的夏天丶 阅读(83) 评论(0) 推荐(0)

python与nlp.学习(一)

摘要: 1.在python中文本用链表来表示:['Monty','Pyton']。我们可以使用索引,分片和len()函数对链表进行操作。(文本在python中都是用链表表示) 2词“token”(标识符)是指文本中给定词的特定出现;词“type”类型则是指词作为一个特定序列字母的唯一形式。我们使用len(t 阅读全文
posted @ 2018-01-26 14:50 不化雪的夏天丶 阅读(147) 评论(0) 推荐(0)