#coding=utf-8# 字符串指示符號 r表示raw u表示unicodemystring=u'this is unicode!--by'
print mystring# 'raw'表示告訴解釋器不要轉換字符串任何字符file=r'c:\temp\folder\robots.txt'
print file# 另一個實用raw的地方是正則表達式# 可以在'''內放任何的字符串,不需要轉義,比如xml
s='dongshen'
print '%s is number %d' %(s[:6],1)
hi='''hithere
'''
print hi
轉載于:https://www.cnblogs.com/yufenghou/p/5097355.html