摘要: #!/bin/sh #this script for get xenserver 6.5 7.0 cpu useage #send xen-host-cpu.sh to xenserver use ftp or ssh first ./xen-host-cpu.sh #version: 0.03 #date: 2016-01-11 hayden #yelang007sheng@163.c... 阅读全文
posted @ 2017-12-08 15:10 hayden__wang 阅读(522) 评论(0) 推荐(0) 编辑
摘要: #/bin/sh #this script for Faster cloune on xenserver 7 #send vm-create.sh to xenserver use ftp or ssh first ./vm-create.sh #version: 0.03 #date: 2016-12-29 #yelang007sheng@163.com #select templa... 阅读全文
posted @ 2017-12-08 14:57 hayden__wang 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 脚本使用说明: 一、通过VM标签逐个设置磁盘属性方法如图: 注意: 要退出单台VM磁盘属性方法:先输入一次正确的VM标签,输入两次3即可 一次性更改所有VM磁盘方法如下图: 脚本局限性说明: 阅读全文
posted @ 2017-12-04 11:50 hayden__wang 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-11-29 11:28 hayden__wang 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- #列出当前目录下文件的大小和创建日期及文件名,相当于ls -l命令 from datetime import datetime import os pwd = os.path.abspath('.') print(' Size Last Modified Name') prin... 阅读全文
posted @ 2017-11-22 17:43 hayden__wang 阅读(199) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 """检测一个文件的访问模式 """ import os print('Testing:', __file__) #显示输出的文件名 print('Exists:', os.access(__file__, os.F_OK)) #判断一个文件是否存在 print('Readable:', os.access(__file__, os.R_OK))... 阅读全文
posted @ 2017-11-22 14:58 hayden__wang 阅读(182) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 #-*-coding:utf-8-*- import os class File(object): def __init__(self, pathname): self.pathname = pathname #删除文件 def delectFile(self, filename): #... 阅读全文
posted @ 2017-11-21 16:33 hayden__wang 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 学习资料:https://docs.python.org/3/library/os.html 需要掌握的例子: 阅读全文
posted @ 2017-11-21 14:42 hayden__wang 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*-#画雪 from turtle import * from random import * def ground(): hideturtle() speed(100) for i in range(400): pensize(randint(5,10)) ... 阅读全文
posted @ 2017-11-17 17:50 hayden__wang 阅读(541) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*-#时钟 from turtle import * from datetime import * def Skip(step): penup() forward(step) pendown() def mkHand(name, length): #注册Turtle... 阅读全文
posted @ 2017-11-17 14:43 hayden__wang 阅读(699) 评论(0) 推荐(0) 编辑