らんだむな記憶

blogというものを体験してみようか!的なー

2016-06-24から1日間の記事一覧

python3って

文字列を扱う上では圧倒的に楽。rubyならもっと楽な気もするけど...。[python2.7.6] >>> ord("a") 97 >>> ord(u"a") 97 >>> ord("あ") Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: ord() expected a character, but string of leng</module></stdin>…