2015-12-02から1日間の記事一覧

<Python> 文字列?

Pythonで、ちみは文字列か?を評価する方法。 isinstanceを使うのがお勧めらしい。 In [7]: a = 'aaa' In [8]: type(a) Out[8]: str In [9]: isinstance(a, str) Out[9]: True マニュアル。 2. Built-in Functions — Python 3.4.3 documentation

<Linux, Bash> Proxyの設定

Linux BashでProxyを設定する。 コマンドによって、Proxyの環境変数を、 大文字で期待しているものと、小文字のものがある。 ちとはまる。。。 .bashrcに次を書き込む。 export HTTP_PROXY=http://hogehoge.hagehage.com:8080 export HTTPS_PROXY=http://hog…