Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/t/w/twqq-HEAD/doc/webqq_bak.py   twqq(Download)
 
try:
    from config import HTTP_CHECKIMG, HTTP_PORT, HTTP_LISTEN
except ImportError:
    HTTP_CHECKIMG = False
                    os.remove("wait")
                logging.info(u"请打开http://{0}:{1} 提交验证码"
                             .format(HTTP_LISTEN, HTTP_PORT))
                self.handler.r = r
                self.handler.uin = uin

src/w/i/winnie-HEAD/winnie.py   winnie(Download)
    # HTTP interface
    site = server.Site(Site)
    reactor.listenTCP( cfg.HTTP_PORT, site)
    print ' -- HTTP int listening on port %s'%(cfg.HTTP_PORT,)
 

src/p/u/pual_bot-HEAD/webqq.py   pual_bot(Download)
                   请打开你的服务器输入验证码:
                   http://{0}:{1}""".format(config.HTTP_LISTEN,
                                            config.HTTP_PORT),
                   _subtype="plain", _charset="utf-8")
    msg['Subject'] = u"WebQQ机器人需要验证码"
 
            logger.info("请打开 http://{0}:{1} 输入验证码"
                        .format(config.HTTP_LISTEN, config.HTTP_PORT))
            if getattr(config, "EMAIL_NOTICE", False):
                if send_notice_email():

src/p/u/pual_bot-HEAD/server.py   pual_bot(Download)
 
try:
    from config import HTTP_PORT
except ImportError:
    HTTP_PORT = 8000