摘要:        
[root@localhost ~]# cat /etc/yum.repos.d/http.repo[base]name=Centosbaseurl=http://10.22.20.48/CentOS/CentOS-7.5-x64/enabled=1gpgcheck=0[root@localhost    
阅读全文
 
        posted @ 2018-10-30 11:22
uxiuxi
阅读(233)
推荐(0)
 
		
    
        
        
摘要:        
其中getopts ‘dm’ option是指代你输入命令-d -m ,此处可以写:dm shift is a bash built-in which kind of removes arguments from the beginning of the argument list. Given t    
阅读全文
 
        posted @ 2018-10-23 19:03
uxiuxi
阅读(132)
推荐(0)
            
        
        
摘要:        
set -- The -- is the standard "don't treat anything following this as an option" 不把后面的string 看成选项(直接看成参数) [root@hy ~]# cat set2.sh#!/bin/bash var="1 2    
阅读全文
 
        posted @ 2018-10-23 18:30
uxiuxi
阅读(251)
推荐(0)
            
        
        
摘要:        
回武汉一年,工作用不到太多脚本及编程,都废弃了,感觉要捡起来。需要重新温习学习了    
阅读全文
 
        posted @ 2018-10-23 18:20
uxiuxi
阅读(120)
推荐(0)
 
		
    
        
        
摘要:        
#import the print from the ffprint module as a function called pretty_print from pprint import pprint as pretty_print #imports the copy and deepcopy functions from the copy module from copy import c...    
阅读全文
 
        posted @ 2017-10-19 17:23
uxiuxi
阅读(549)
推荐(0)
 
		
    
        
        
摘要:        
myFile=open("score.txt",'w') print("Name "+myFile.name) print("Mode "+myFile.mode) myFile.write("GBJ: 100\nKHD : 99\nBBB :89") myFile.close() #Read the file myFile2=open("score.txt",'r') print("Rea...    
阅读全文
 
        posted @ 2017-10-16 07:48
uxiuxi
阅读(424)
推荐(0)
 
		
    
        
        
摘要:        
今天看视频 突然想到以前edward说过的那道写24点c语言程序。随便用python写了下。 但是这都是无重复数字 重复运算符号版本    
阅读全文
 
        posted @ 2017-10-15 22:18
uxiuxi
阅读(1386)
推荐(0)
 
		
    
        
        
摘要:        
from tkinter import scrolledtext #import 下拉文本框类 #Using a scrolled Text control #3 scrolW = 30 #4 #30个字符的长度 scrolH = 3 ...    
阅读全文
 
        posted @ 2017-10-12 23:17
uxiuxi
阅读(179)
推荐(0)
 
		
    
        
        
摘要:        
这个代码可以执行。 但是有些不明白的地方是定义clickMe函数时候。action都没有这个类。 为啥可以执行。 我去问下朋友 问了龙哥。大概理解一部分。 在函数定义的时候,并不执行里面的语句。而action新建的时候,程序只会找有没有clickMe函数。找到就新建了action类。 然后就能理解c    
阅读全文
 
        posted @ 2017-10-09 23:10
uxiuxi
阅读(263)
推荐(0)
 
		
    
        
        
摘要:        
>>> from tkinter import *>>> root=Tk()>>> text=Text(root,width=40,height=10) #创建一个text 文本框。长度是40 pixel 高度是10pixel>>> text.pack() #排版>>> text.config(wr    
阅读全文
 
        posted @ 2017-09-27 00:05
uxiuxi
阅读(215)
推荐(0)