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

<Python> lsコマンド

lsを実行して、ディレクトリdirectoryのファイルfileをゲットする。 subprocessを使う。 その1 .check_out() In [1]: import subprocess In [2]: subprocess.check_output('ls', shell=True) Out[2]: b'aaa.html\nbbb2.html\nccc.csv\n' ということで、なん…

<html, css> 3ペイン

ページを3ペインpane(3分割)する場合のCSS。 body { margin: 0; _overflow: hidden; padding-top: 150px; } #top { height: 150px; position: fixed; top: 0; width: 100%; } #left { height: 100%; margin: 0 0 0 0; padding: 5px; position: fixed; _p…