摘要:
查看文件大小 # -*- coding: utf-8 -*- import os import sys def convert_bytes(num): for x in ['bytes', 'KB', 'MB', 'GB', 'TB']: if sys.platform.startswith('da 阅读全文
摘要:
解决问题 SyntaxError: future feature annotations is not defined 解决思路 语法错误:没有定义future feature注释 解决方法 实际上是python版本不对,该语法需要在python3.7以上,而当前版本在python3.6所以导致此错 阅读全文
摘要:
文件操作: ls 查看目录中的文件 ls -F 查看目录中的文件 ls -l 显示文件和目录的详细资料 ls -a 显示隐藏文件 ls [0-9] 显示包含数字的文件名和目录名 rm go.tar 删除go.tar文件 find mt.cgi 查找文件名为mt.cgi的文件 df ?h 查看磁盘剩余 阅读全文