<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[github_37761578的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/github_37761578</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; github_37761578]]></copyright><item><title><![CDATA[java api指导手册]]></title><link>https://blog.youkuaiyun.com/github_37761578/article/details/61429912</link><guid>https://blog.youkuaiyun.com/github_37761578/article/details/61429912</guid><author>github_37761578</author><pubDate>Sat, 11 Mar 2017 21:58:28 +0800</pubDate><description><![CDATA[http://www.runoob.com/manual/jdk1.6/]]></description><category></category></item><item><title><![CDATA[python 类的打印__str__]]></title><link>https://blog.youkuaiyun.com/github_37761578/article/details/61417624</link><guid>https://blog.youkuaiyun.com/github_37761578/article/details/61417624</guid><author>github_37761578</author><pubDate>Sat, 11 Mar 2017 15:02:37 +0800</pubDate><description><![CDATA[python，__str__一般是格式是这样的

class A:
def __str__(self):
return "this is in str"

事实上，__str__是被print函数调用的，一般都是return一个字符串。当打印一个类的时候，那么print首先调用的就是类里面的定义的__str__]]></description><category></category></item><item><title><![CDATA[python 可变参数函数定义* args和**kwargs的用法]]></title><link>https://blog.youkuaiyun.com/github_37761578/article/details/61416228</link><guid>https://blog.youkuaiyun.com/github_37761578/article/details/61416228</guid><author>github_37761578</author><pubDate>Sat, 11 Mar 2017 13:58:33 +0800</pubDate><description><![CDATA[python函数可变参数 (Variable Argument) 的方法：使用*args和**kwargs语法。其中，*args是可变的positional arguments列表，**kwargs是可变的keyword arguments列表。并且，*args必须位于**kwargs之前，因为positional
 arguments必须位于keyword arguments之前
下面一个例]]></description><category></category></item><item><title><![CDATA[python 函数是可调用对象和特殊方法__call__]]></title><link>https://blog.youkuaiyun.com/github_37761578/article/details/61415998</link><guid>https://blog.youkuaiyun.com/github_37761578/article/details/61415998</guid><author>github_37761578</author><pubDate>Sat, 11 Mar 2017 13:45:55 +0800</pubDate><description><![CDATA[在Python中，函数其实是一个对象：
由于函数f可以被调用，所以函数f被称为可调用对象。

一个类实例也可以变成一个可调用对象，只需要实现一个特殊方法__call__()。
我们把 Person 类变成一个可调用对象：
class Person(object):
    def __init__(self, name, gender):
        self.name = name]]></description><category></category></item><item><title><![CDATA[python 异常处理]]></title><link>https://blog.youkuaiyun.com/github_37761578/article/details/61413799</link><guid>https://blog.youkuaiyun.com/github_37761578/article/details/61413799</guid><author>github_37761578</author><pubDate>Sat, 11 Mar 2017 10:16:47 +0800</pubDate><description><![CDATA[异常处理的e是异常类的实例
try:
    print 'try...'
    r = 10 / 0
    print 'result:', r
except ZeroDivisionError, e:
    print 'except:', e
finally:
    print 'finally...'
print 'END'
自定义异常类
class MyError(Exce]]></description><category></category></item><item><title><![CDATA[shell脚本-逻辑判断]]></title><link>https://blog.youkuaiyun.com/github_37761578/article/details/60372241</link><guid>https://blog.youkuaiyun.com/github_37761578/article/details/60372241</guid><author>github_37761578</author><pubDate>Sun, 05 Mar 2017 00:22:20 +0800</pubDate><description><![CDATA[test可以替换为[ expr ]，例如： [ $name = stephen ]
[[  expr ]] 则可以表示正则表达式，例如： [[ $name == [Ss]tephen && $friend == "Jose" ]]
(( expr )) 表达方式和c语言保持一致， 例如： (( x == 2 && y == 3 ))
成功则返回0，失败返回1




判断操作符]]></description><category></category></item></channel></rss>