02 2019 档案
摘要:主要使用的是wkhtmltopdf的Python封装——pdfkit centos环境 安装:Install python-pdfkit 安装:Install wkhtmltopdf windows环境下安装wkhtmltopdf参考这篇文章: 我们也可以传递一个url或者文件名列表: 也可以传递一
阅读全文
摘要:captalize() 函数 功能 将一个字符串的第一个字母大写 用法 str.captalize() 参数 无 返回值 string 示例代码 str = "hello world!" print "str.capitalize(): ", str.capitalize() 运行结果 tr.cap
阅读全文
摘要:#for循环之二分查找 def seek(targe=66,arr=[11,22,33,68],left=0,right=3): while lefttarge: right=mid-1 #seek(targe,arr,left,right) else: left=mid+1 ...
阅读全文