軟件
- Picasa 中文版 Google的圖片管理工具推出中文版了
- Opera going free Opera變成免費軟件,瀏覽器的戰爭又更激烈了
網站
- Loomia 一個 Podcast Director
- RoundCube Webmail Project 一個 Ajax Email Client,像 Gmail 一樣,雖然用了不少 Ajax 技術,但卻不會因為 Load 太多的 Javascript 而使反應變慢
- Jumbo有趣短片 收錄各式各
軟件
網站
Here's an extreme example of import and namespace trickery, drawnfrom the standard Python ftplib module:
try: import SOCKS socket = SOCKS del SOCKS from socket import getfqdn socket.getfqdn = getfqdn del getfqdnexcept ImportError: import socket
(linebreaks added for clarity)
Modules are objects in Python, so a module's name binding can bemanipulated like anything else. This leads to the two things that ftplib is doing here.
First, the ftplib module would like to use the SOCKS module if itexists and otherwise
Vernon Schryver, in news.admin.net-abuse.email:
The buck always stops or is at least duplicated at the SMTP client.It does not matter to rational spam targets whether the operators ofa spam relay are paid for their services or forward spam as acharity.
(From Message-ID 網摘一大堆! 遊戲展 Thomas Boutell has just startedserious Python work and wound up noticing (in the middle of here ): What's not so painless is discovering that "function" must bedefined like this before I can call it. Wait a minute. That's pretty standard behavior for C, yeah. But thisain't 1973. Perl and Java are both bright enough to read the rest ofyour code and find the function, allowing you to place functions inyour source code where they feel right
20050919網摘 – 休息三天,重頭上路/網!
Love never fails
love is kind.
It does not envy,
it does not boast,
it is not proud,
it is not rude,
it is not self-seeking,
it is not easily angered,
it keeps no record of wrongs.
Love does not delight in evil,
but rejoices with the truth.
It always protects,
always trusts,
always hopes,
always perseveres.
Love never fails.
我總叫自己相信愛,
即使在最心灰的時候。
別人可
秋月
Function definition order in Python
Menu