jfo planet

Hope is the best gift that tomorrow gives.

  • 首页
  • 分类
  • 归档
  • 标签
  • 搜索
close

python语法重点参考

发表于 2008-06-24   |   分类于 python/js/php/html/mysql/http
一个学习各种脚本语言的网站(IT加油站),方便referencehttp://www.fzs8.net/python/Python 在函数中接收元组和列表当要使函数接收元组或字典形式的参数的时候,有一种特殊的方法,它分别使用和**前缀。这种方法在函数需要获取可变数量的参数的时候特别有用。>>> def powersum(power, args):…     ‘’’Return the sum of each argument raised to specified power.’’’…     total = 0…     for i in args:…          total += pow(i, power)…     return total ...
阅读全文 »

Google App Engine

发表于 2008-06-24   |   分类于 Google
Google App Engine:google.appengine.ext.webapp.RequestHandler    self.request.get(‘parm_name’)    self.request.params[‘file’]    // form-data parameters, (ret.filename, ret.value) for upload file    self.response.headers[‘Content-Type’] = ‘text/plain’    self.response.out.write("Some message back")    self.redirect(users.create_login_url(self.request.uri))  ...
阅读全文 »

python package/program distribution methods

发表于 2008-06-23   |   分类于 python/js/php/html/mysql/http
distutilshttp://www.python.org/doc/current/dist/simple-example.html发布python package,(.py, .pyc, .pyo等,不能单独运行,需要安装python运行环境)setup.py文件内容:from distutils.core import setup setup(name=’foo’,           version=’1.0’,py_modules=[‘foo’],           ) python setup.py sdist —-> source distribution python setup.py bdist_wininst —-> 将python module以windows安装文件的形式发布,安装后原python源文件、编译后的.pyc, *py ...
阅读全文 »

【zz】Overcoming Shyness

发表于 2008-06-22   |   分类于 English
http://www.pickthebrain.com/blog/overcoming-shyness/All my life I’ve been an inwardly directed person. While some people like to think out loud, I prefer to process the world internally, answer my own questions, and come to a conclusion before speaking up.This personality trait has benefits and drawbacks. On the positive side, it’s a source of strength as a writer and analytical thinker. Without it I wouldn’t have taken an interest in books/writing and this site wouldn’t ...
阅读全文 »

【zz】Attention Introverts: How to Become More Extroverted

发表于 2008-06-22   |   分类于 English
http://www.pickthebrain.com/blog/attention-introverts-how-to-become-more-extroverted/#more-571Already, by writing this title, I’m sure I’ve annoyed a few people. Extroversion is supposed to be a personality trait, not something you pick, but something you were born with. That might be true. But even if you are fairly introverted, I think you can still capture some of the best parts of being an extrovert: Being comfortable with groups of people. Meeting people easily. Having conversa ...
阅读全文 »

C#入门代码

发表于 2008-06-21   |   分类于 c/c++/algorithm
http://www.cnblogs.com/lyj/archive/2007/01/09/616053.html一、从控制台读取东西代码片断:using System;class TestReadConsole{    public static void Main()    {        Console.Write(Enter your name:);        string strName = Console.ReadLine();        Console.WriteLine( Hi + strName);    }}二、读文件代码片断:using System; using System.IO;public class TestReadFile { &nb ...
阅读全文 »

彻底失眠了,唉

发表于 2008-06-10   |   分类于 Life
本打算明天早点起,结果现在还睡不着#*¥$?@%彻底失眠,听歌……
阅读全文 »

a little upset today

发表于 2008-06-05   |   分类于 Life
虽然热闹之后总会有些许的失落,但计划好了就义无反顾的坚持下去吧,切身的感受是因为做了才真实。 今天发生的事太多了,显然有点不知所措了,有点忐忑不安。做了一件两头不讨好的事,两边都是自己最要好的朋友,其实他们不会觉得有什么,但是自己心里还是过不去,只能怪自己不慎重。 有时会反省到底自己期许的是什么,有时觉得自己追求的东西完全是矛盾的… anyway,今天还是有很开心的,也尝试着对自己进行了一个小小的挑战。 I`ll carry it on.
阅读全文 »

D-Bus Tutorial - part II

发表于 2008-06-04   |   分类于 Linux
http://dbus.freedesktop.org/doc/dbus-tutorial.html GLib API: Using Remote ObjectsThe GLib binding is defined in the header file <dbus/dbus-glib.h>.D-Bus - GLib type mappingsThe heart of the GLib bindings for D-Bus is the mapping it provides between D-Bus "type signatures" and GLib types (GType). The D-Bus type system is composed of a number of "basic" types, along with several "container" types.Basic type mappingsBelow is a list of the basic types, a ...
阅读全文 »

D-Bus Tutorial - part I

发表于 2008-06-04   |   分类于 Linux
http://dbus.freedesktop.org/doc/dbus-tutorial.htmlD-Bus TutorialHavoc PenningtonRed Hat, Inc.<>David WheelerJohn PalmieriRed Hat, Inc.<>Colin WaltersRed Hat, Inc.<>Version 0.5.0Table of ContentsTutorial Work In ProgressWhat is D-Bus?D-Bus applicationsConceptsNative Objects and Object PathsMethods and SignalsInterfacesProxiesBus NamesAddressesBig Conceptual PictureMessages - Behind the ScenesCalling a Method - Behind the ScenesEmitting a Signal - Behind the ScenesIntrospectionG ...
阅读全文 »
1…383940…61
jfo

jfo

605 日志
38 分类
4 标签
RSS
GitHub 微博
友情链接
  • 收藏夹
  • 网络剪贴板
  • 爱逛吧
© 2007 - 2018 jfo
由 Hexo 强力驱动
主题 - NexT.Pisces