主文件如下:#coding=utf-8 import requests import urllib import urllib2 import cookielib import WeiboEncode import WeiboSearch import time import re
Keywords:assertAssert (ensure) that something is true.assert False, "Error!"exceptIf an exception happens, do this.except ValueError, e: print eexecRun a string as Python.exec 'print "hello"'globalDec
#后面写注释加上.0则自动作为float处理输出int: print "He's %d pounds heavy." % my_weight输出String: print "He's got %s eyes and %s hair." %&
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号