tacchini's manual

自分用のマニュアルを作成します。

python

python 写経するサイトのリスト

python-izm 文字列 - Python入門から応用までの学習サイト python.org -> getting started -> sample code -> python standard library -> html (the eff-bot guide to) The Standard Python Library

python string

写経します 文字列 - Python入門から応用までの学習サイト # -*- coding: utf-8 -*- print 'tacchini-blog' print "tacchini-blog" print """tacchini-blog1 tacchini-blog2 tacchini-blog3""" print """ tacchini-blog-a tacchini-blog-b tacchini-blog-c "…

beautifulsoup

<title> タグを取得 # -*- coding:utf-8 -*- import urllib2 from bs4 import BeautifulSoup html = urllib2.urlopen("http://kazuyan.hatenablog.com/entry/building-a-large-scale-design-system") soup = BeautifulSoup(html) print soup.title.string 実行結果 </title>…

Zope

mojix.org Python技術 PyPI Eggs easy_install zc.buildout

__init__.py

init.py がないと import に失敗する これは知らんかった ImportError: No module named xxx http://samurait.hatenablog.com/entry/init.py%E3%81%AE%E5%BD%B9%E5%89%B2

zLOG 読んでみる

pypi.python.org

eggってなんだ

pythonのpackageではない?

import

次はpythonのimport uxmilk.jp import されたら main 以下は実行されない def sub(x,y): return x - y if __name__ == "__main__": print sub(10000, 1) test_module.py を import (基本) import test_module a = test_module.Test() a.sayStr("Hello") モ…

python package

pythonのパッケージ単体で動作検証したい。 コマンド実行するのかな? パッケージとは?から調べてます。 uxmilk.jp ディレクトリにほうりこむだけ ディレクトリごとに __ini__.py を設置 パッケージ(ディレクトリ) > モジュール(ファイル) > クラス > …