r'文字列'
u'文字列'
のrとかuは、だいたい、どういう時に使うのでしょうか?
rawとかunicodeのことだとはわかっているのですが、どう場面でどう使い分けるのかなと。
こちらは参考になるでしょうか。
r'文字列' → 正規表現。
u'文字列' → 日本語。Ver.2.7のとき必要。Ver.3では付けても付けなくてもよい。
※参考URL
http://www.pythonweb.jp/tutorial/string/index4.html
http://www.pythonweb.jp/tutorial/string/index5.html
http://qiita.com/wanwanland/items/ce272419dde2f95cdabc
https://gist.github.com/devlights/4561968