s1='char,python,nihao,ni,ni,python's=s1.split(',')print(s1)s2=list()for i in s: if i not in s2: s2.append(i) s2.append(1) else: if i in s2: s2[s2.index(i)+1]= str(int(s2[s2.index(i)+1])+1)print(s2)i=0while i<len(s2): print(s2[i],s2[i+1],sep='---') i+
Caused by: net.paoding.analysis.exception.PaodingAnalysisException: dic home should not be a file, but a directory! at net.paoding.analysis.knife.PaodingMaker.setDicHomeProperties(PaodingMaker.java:338) at net.paoding.analysis.knife.PaodingMaker.getD
基本数据类型补充: set 是一个无序且不重复的元素集合 class set(object): """ set() -> new empty set object set(iterable) -> new set object Build an unordered collection of unique elements. """ def add(self, *args, **kwargs): # real signature un
arlenmbx@arlenmbx-ThinkPad-X130e:~$ su root 密码: root@arlenmbx-ThinkPad-X130e:/home/arlenmbx# python Python 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010] on linux2 Type "help", "copyright", "credits" or "li