摘要:        
laravel打印完整SQL语句 用DB自带的getQueryLog方法直接打印: //开启QueryLogDB::connection()->enableQueryLog(); \App\User::find(1); dump(DB::getQueryLog());    
阅读全文
            posted @ 2021-06-09 17:46
WebLinuxStudy
阅读(87)
推荐(0)
        
         
 
	
		
        
        
摘要:        
提示:识别效果不是特别好 from PIL import Imageimport pytesseractimport easyguiimport os # 选择文件对话框path = easygui.fileopenbox() print(path) # 识别文字text = pytesseract    
阅读全文
            posted @ 2021-04-30 13:01
WebLinuxStudy
阅读(358)
推荐(0)
        
         
        
        
摘要:        
https://blog.csdn.net/qq_36789311/article/details/102585927    
阅读全文
            posted @ 2021-04-30 11:48
WebLinuxStudy
阅读(121)
推荐(0)
        
         
        
        
摘要:        
import easygui # 选择文件对话框 fileName = easygui.fileopenbox()print(fileName)    
阅读全文
            posted @ 2021-04-30 11:32
WebLinuxStudy
阅读(1186)
推荐(0)
        
         
 
	
		
        
        
摘要:        
import re str = 'abc def gh ijk' strAfter = re.sub(' +', '', str) print(strAfter)    
阅读全文
            posted @ 2021-04-20 17:51
WebLinuxStudy
阅读(1900)
推荐(0)
        
         
 
	
		
        
        
摘要:        
docxtpl 一个很强大的包,其主要通过对docx文档模板加载,从而对其进行修改。 安装pip install docxtpl 使用说明:1.手动创建word模板文件 my_word_template.docx2.word模板文件中替换的变量用{{}}扩上,本例中用到{{title1}},{{ti    
阅读全文
            posted @ 2021-03-31 15:20
WebLinuxStudy
阅读(558)
推荐(0)
        
         
 
	
		
        
        
摘要:        
将/data/aDir/文件夹下的bDir文件夹,打包到/tmp/cDir/文件夹下,起名为dTest.tar.gz cd /data/aDir # 查大小du -h --max-depth=0 bDir tar -czf /tmp/cDir/dTest.tar.gz bDir    
阅读全文
            posted @ 2021-03-17 18:15
WebLinuxStudy
阅读(50)
推荐(0)
        
         
 
	
		
        
        
摘要:        
python使用xpath获取内容 <div class="leftbox"> <div class="panel"> <div class="mtitle path"><h1>12</h1></div> <div class="mcon1"><h2>34</h2></div> <div class    
阅读全文
            posted @ 2021-03-08 22:07
WebLinuxStudy
阅读(1671)
推荐(0)
        
         
 
	
		
        
        
摘要:        
测试所用的编辑器:notepad++ ^(\s*)\r\n 根据文档格式(windows, mac, linux行尾符)不同 将其中的\r\n替换成不同行尾符 windows: ^(\s*)\r\n linux: ^(\s*)\n mac: ^(\s*)\n (mac 也是一种类linux系统)    
阅读全文
            posted @ 2021-03-05 20:49
WebLinuxStudy
阅读(507)
推荐(0)
        
         
 
	
		
        
        
摘要:        
list1 = [1,2,1,3] list1 = list(set(list1)) print(list1)    
阅读全文
            posted @ 2021-02-07 16:06
WebLinuxStudy
阅读(47)
推荐(0)