IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
Penyanyi Terkenal Luncurkan Album Baru Konsep Futuristik dari penyanyi terkenal yang tak hanya memiliki suara merdu tetapi juga selalu membawa konsep inovatif dalam setiap karya musiknya. Kali ini, sang penyanyi meluncurkan album baru dengan konsep futuristik yang unik, menggabungkan elemen-elemen teknologi, eksplorasi bunyi eksperimental, dan visual yang mencerminkan dunia masa depan. Album ini t
ぼちぼちとさくらのスタンダードプランのサーバ設定をしていきます。 まずは、 「さくらのレンタルサーバ」で Python 外部モジュールを使う を 参考にpython moduleを「~/local/lib/python/site-packages」にインストールするよ う設定する。 PYTHONPATH .zshrcにPYTHONPATHを設定。 export PYTHONPATH=/home/xxx/local/lib/python 設定後に、下記が現れれば無事に反映されてる。 $python >>> import sys >>> sys.path ['', '/home/xxx/local/lib/python', .....] まずは、easy_installをインストール。 $ wget http://cheeseshop.python.org/packages/source/s/
1. 初めに 2006 年 9 月 19 日に Python 2.5 がリリースされました。このバージョンではかなりいろいろな点が 改善され、ますます使いやすくなっています。 この文書では Python 2.5 の改善点を簡単に紹介したいと思います。 詳しく知りたい人は What's New in Python 2.5 をみてください。 2. Python 2.5 での変更点 2.1. 三項演算子 Python 2.5 から "三項演算子" が使えるようになりました。 今まで、Python には三項演算子が無かったので、単に条件によって代入される値を変えるために if predicate: value = then_value else: value = else_value と書くのは冗長なので、簡潔に、 value = predicate and then_value or else_
Python Search A Python Programming Specific Search Engine Search the internet for results relevant to python programming. Because of the way this search works, you may get more results with more specific search terms. The term Python will automatically be included in your query.
A couple of you make donations each month (out of about a thousand of you reading the text each week). Tragedy of the commons and all that... but if some more of you would donate a few bucks, that would be great support of the author. In a community spirit (and with permission of my publisher), I am making my book available to the Python community. Minor corrections can be made to later printings,
最近流行の非同期ですが、pythonではどう書くのかなあと。 ってか普通にselectモジュールあるやん! twistedの中身もselectやね。 どうもasync系はあんまし使わないっぽいらしい。 でサンプル import socket import select sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('', 8080)) sock.listen(10) read = [sock] write = [] data = {} adrs = {} try: while 1: i, o, e = select.select(read, write, []) for x in i: if x is sock: newSock, addr = sock.accept() print "connect
DjangoNote ここのドキュメントはdjango0.91をベースにしています。 djangoの現在の最新ソースコードはdjango0.95となる予定の物になっており、黒魔術が取り除かれ記述方法もすっきりとしたものです。 可能な限りsubversionから最新版をダウンロードし、参照する日本語ドキュメントも djangoproject.jp Djangoと日本の仲間たち からリンクされているymasuda.jpの物(2006/05/02時点で、最新ソースにより近いドキュメント)を参照してください。 イントロダクション Djangoのインストールについて Python Workshop03 資料 Python Workshop03 資料(keynoteのmov) チュートリアル Tutorial 1 Tutorial 2 Tutorial 3 Tutorial 4 増田さんのサイトに完全
©2000-2007 makoto tsuyuki. Powered by . Hosted by dreamhost. Best viewed by Safari. about this site
1.Djangoは現時点で動作する Djangoが2005年の7月に初めてリリースされたことにだまされてはいけない。 既に2年以上もヘビーユースされてきている物だ。 表示が出来なくなってしまうバグがないことを誓おう。 2.デプロイは楽勝 Webフレームワークの世界では悲しい話(http://www.it-entrepreneur.com/?p=15)やデプロイの困難さ(http://www.petersblog.org/node/1075)に満ちている。 Django製サイトのデプロイが確立されているだけでなく、Django製サイトは非常に安定している。 我々は10個のサイト対する一日1500万ヒット以上をシングルDjangoインストールで捌いている(WebサーバとDBサーバ一つづつで)。 3.サイトはダウンしない Djangoサイトはスラド効果もFark効果も過激なNCSSバ
Stay Relevant and Grow Your Career in TechPremium ResultsPublish articles on SitePointDaily curated jobsLearning PathsDiscounts to dev toolsStart Free Trial7 Day Free Trial. Cancel Anytime. Being a web developer isn’t always exciting. There are lots of tedious things you end up doing over and over again: writing code to talk to a database, writing code to handle page templating, writing an adminis
September 27, 2006 James Gardner Web Server Gateway Interface Part I: Getting Started The recent Python 2.5 release features the addition of the Web Server Gateway Interface Utilities and Reference Implementation package (wsgiref) to Python's standard library. In this two-part article, we will look at what the Web Server Gateway Interface is, how to use it to write web applications, and how to use
_ PythonでSICP 何だか気分的に煮詰まってしまったので、 気分転換に SICP の問題でも解いてみる。 C++で解く という強者もいらっしゃるようだが、 私は屁垂れなので、 Python でやってみる。 疲れた時にわざわざ蛇の道を歩むこともなかろう... SICP in other languages にPythonの例もあるみたいだが、 それは見なかったことにする。 Exercise 1.3. 三つ引数を取って、大きい方の二つの数字の自乗の和を求める関数を書け。 これぐらい簡単でないと頭は休まらないよな。 def f(a, b, c): l = [a, b, c] l.remove(min(l)) return sum([x * x for x in l]) 思わずbrute-forceでやってしまったが、 def f(a, b, c): return sum([x * x f
一般に,PerlやPythonなどの軽量言語(Lightweight Language)でプログラムを作るときは,テキスト・エディタでコードを記述することが多いでしょう。専用の開発ツールなどを使わなくても,さっと書いてさっと実行できることが軽量言語の魅力の一つです。とはいえ,ある程度規模の大きい本格的なプログラムを作りたいときは,コード入力支援やデバッガなどの機能を備えた統合開発環境(IDE)を使うほうが便利です。軽量言語プログラミングを支援するIDEはいくつかありますが,その中からPython用IDE「PyDev」を紹介します。 PyDevは,Eclipse上でPythonプログラミングを可能にするプラグインです。言語としてはPythonのほかにJython(Java仮想マシンで動くPython処理系)にも対応します。インストールは簡単です。Eclipseが備えるソフトウエアの更新機能を
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く