String method: to upper case,methodupper,quote = 'Pyt
String method: to upper case,methodupper,quote = 'Pyt
quote = 'Python is easy to use.'print 'Original quote:'print quoteprint '\nIn uppercase:'print quote.upper()print '\nOriginal quote is still:'print quote
- Escape Codes: \b, \t, \n, \a, \r,escapecodes,s = 'e:\\
- Escape characters: \n and \t,escapecharacters,s = 'a\n
- Find substring in a string,substringstring,S = 'xxxxSP
- Indices may be negative numbers, to start counting from
- Joining strings,joiningstrings,list1 = [ '
- Splitting a String,splittingstring,li = ['serve
热门文章:
相关内容
- Escape Codes: \b, \t, \n, \a, \r,escapecodes,s = 'e:\\Beg
- Escape characters: \n and \t,escapecharacters,s = 'a\nb\tc
- Find substring in a string,substringstring,S = 'xxxxSPA
- Indices may be negative numbers, to start counting from the right. Fo
- Joining strings,joiningstrings,list1 = [ '
- Splitting a String,splittingstring,li = ['serve
- Output and get length of a string with special characters,outputcha
- Use r to define a string and return its length,definelength,path =
- String repitition demo,stringrepitition,print 'Pie'
- Searching from end of string,searchingstring,string1 = 'T
评论关闭