2016年(5)
发布时间:2016-06-06 22:28:06
class Solution(object): def lengthOfLongestSubstring(self, s): charSet=set() lengthList=[] length=0 for c in s: if c not in charSet: charSet.add(c) length+=1 else: lengthList.append(length) .........【阅读全文】
发布时间:2016-06-06 22:27:40
class Solution(object): def lengthOfLongestSubstring(self, s): charSet=set() lengthList=[] length=0 for c in s: if c not in charSet: charSet.add(c) length+=1 else: lengthList.append(length) .........【阅读全文】
发布时间:2016-06-02 22:20:44
#!/usr/bin/python3.5# coding: UTF-8from copy import deepcopyimport matplotlib.pyplot as pltimport numpy as npfrom bisect import bisecttorqueCurve=[]powerCurve=[]#起步转速startRpm=1300class Transmission(): def __init__(self,gears,efficiency=0.9,nowGear=1): .........【阅读全文】