FreezeJ' Blog

优秀开源镜像站

Linux
转自任我乐 优秀开源镜像站 企业站 URL 阿里云 mirrors.aliyun.com/ 网易 mirrors.163.com/ 华为 mirrors.huaweicloud.com/ 首都在线 mirrors.yun-idc ...
查看更多

腾讯云磁盘扩容

Linux 腾讯云
在线扩容https://cloud.tencent.com/document/product/362/54127 Linux 云服务器内核不低于3.6.0版本 yum install gdisk -y yum install -y cloud-utils-growpart growpar ...
查看更多

python textwrap模块

Python
textwrap — 文本自动换行与填充官方文档:https://docs.python.org/zh-cn/3/library/textwrap.html 文本裁切wrap 根据限定长度(width)裁切空字符,返回一个列表fill 根据限定长度(width)裁切空字符,返回一个完整字 ...
查看更多

python argparse用法

Python
官方教程: https://docs.python.org/zh-cn/3/howto/argparse.html完整api:https://docs.python.org/zh-cn/3/library/argparse.html 引入argparse库import argparse ...
查看更多

(转)如何选择开源许可证?

转自阮一峰的网络日志 http://www.ruanyifeng.com/blog/2011/05/how_to_choose_free_software_licenses.html GPL、BSD、MIT、Mozilla、Apache和LGPL
查看更多

protobuf安装

Linux
简介:protocolbuffer(以下简称PB)是google 的一种数据交换的格式,它独立于语言,独立于平台 编译安装下载:下载地址解压后进入文件安装: ./autogen.sh ./configure make make check sudo make install 校验: p ...
查看更多

Python map、filter、reduce函数

Python
mapmap(func, *iterables) –> map objectmap函数相当于把迭代对象的所有项都作为参数执行所给的函数,返回应用后的结果。 >>> iter = [1, 2, 3] # 可迭代对象 >>> func = lambda ...
查看更多

python time,datetime,string时间转换

import time from datetime import datetime # 以下简写string: st, datetime:dt, timestamp:ts # 把datetime转成字符串 def dt2st(dt): return dt.strftime(& ...
查看更多

telnetlib实现telnet功能

Python Network
telnet可以用来远程管理交换机,现在估计用的不多了,用ssh会更安全一点,这里只是作一个记录 # encoding=utf-8 ## telnet test import telnetlib import time def telnet(host, username, passw ...
查看更多

python断点调试PDB

代码部署到了服务器,不借助IDE很难调试,出现问题时,手动调试一个个变量print太麻烦,还需要频繁的改代码,效率低下,使用python PDB可以在命令行调试代码,非常强大 PDB是python debugger的简称,python默认已经自带pdb了,无需另外安装,以下是两种方式的P ...
查看更多
Prev

第 9 页,共 145 篇文章

Next