还是直接上程序吧,暂且就叫它为程序吧: ''' 按照多个分隔符分割,split的用法 ''' import re s='hi!chu?lan!heihei' re.split('[!?]',s) ''' 有汉字时候的分割 ''' str=u"[楚同学]小小同学_楚楚同学-春天来了" re.split(u'[|]|-|_', str) for i in re.split(u'[|]|-|_', str): print i ''' 按照一个分隔符分割时,split的用法 str.split…
1.单行注释一般放在语句的上方: // cout and endl live in the iostream library std::cout << "Hello world!" << std::endl; 2.多行注释写法: /* This is a multi-line comment. * the matching asterisks to the left * can make this easier to read */ 3.注释的用处 .At th…