原创 Python smtplib發送郵件

import smtplib from email.mime.text import MIMEText mailto_list=["[email protected]"] #收件人(列表) 驗證可成功發送qq郵箱

原创 Vue 實現todolist

<!--需求 1:動態生成div並且渲染 2:在輸入框輸入信息點擊添加並且在頁面渲染           3:點擊對應位置並且刪除 4:高亮顯示點擊位置 --> <!-- 實現 1.使用列表渲染 2.v-model數據雙向綁定 獲取用戶輸

原创 python 正則表達式三

#分組能滿足一些特定得需求 #re.match無分組 test = "good morning this is time 10" test1 = re.match("g\w+",test) print(test1.group()) #g

原创 序列運算 字符串 列表常用方法描述

1.序列 (1) 序列的標準類型運算 <、>、<=、>=、==、!= 值比較 is、is not 對象身份比較 and、or、not 邏輯運算 (2) 通用序列類型操作 seq[start: end] 切片操作 (*) 重複組合序

原创 pyhton 正則表達式一

findall匹配原則:匹配滿足所有條件的字符 import re test = re.findall('abc','abcabaabc') print(test) #['abc', 'abc'] a = "abcaabbcc" prin

原创 Python numpy數據可視化

# -*- coding: utf-8 -*- # @File : 數據可視化(Data_visualization).py # @Date : 2019-02-22 # @Author

原创 python 正則表達式二

#search匹配原則:瀏覽全部,匹配第一個出現的字符串。 test = (re.search('abc','abcababc')).group() print(test) #abc print(re.search('a(\d+?)',

原创 pytesseract 獲取圖片上字符串,及增加亮度,色感,對比度,銳度

from PIL import Image import pytesseract text = pytesseract.image_to_string(Image.open("./pic/pythontest.png")) print

原创 Autoit3 激活當前窗口安裝驅動

激活當前窗口安裝驅動,適用於大多數驅動安裝 Run("C:\softpaq\Download\" & $CmdLine[1] & " -s")  #接受一個參數 $i = 0 While $i <= 20    $i = $i + 1  

原创 Javascript 獲取用戶輸入,條件判斷

<body> <html> <script> function f() { try { //獲取用戶輸入的數據 var x =

原创 powershell 識別插入U盤盤符

Get-Volume|Where-Object{$_.DriveType -eq "Removable"}

原创 dos 實用命令

修改UAC(用戶控制) @echo off C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\

原创 python3 正則對str去掉標點符號及符號,及提取字符

import re def remove(text): punctuation = '[{?!,;+"\'' # \ 無法去掉,空格可以去掉 text = re.sub(r'[{}]+'.format(punct

原创 python 豆瓣電影影評數據可視化

import requests from bs4 import BeautifulSoup import pandas as pd #u1 = "https://movie.douban.com/subject/261009

原创 python PIL模塊在圖片畫線寫字

圖片上畫線條 import sys from PIL import Image,ImageDraw im = Image.open("th.png") draw = ImageDraw.Draw(im) #實例化一個對象 draw.