摘要: 给定一个有限长度的只包含0或1的字符串,再给定一个小于字符串长度的数字,该数字为可把字符串中任意位置0更换为1的最大次数。 求可得到最长的全部为1的子串。 阅读全文
posted @ 2018-11-20 22:16 右介 阅读(133) 评论(0) 推荐(0) 编辑
摘要: #coding=utf-8 import xlrd import distance from sklearn.feature_extraction.text import CountVectorizer,TfidfVectorizer import numpy as np from scipy.linalg import norm workbook = xlrd.open_workbook(... 阅读全文
posted @ 2018-11-20 15:55 右介 阅读(1905) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Defines a MongoOperator class and allows you to manipulate the Mongodb Database.(insert, delete, update, select...) ''' from pymongo import Mongo... 阅读全文
posted @ 2018-11-20 15:05 右介 阅读(774) 评论(0) 推荐(0) 编辑