# encoding :utf-8import pyautoguifrom PIL import Imageimport time pyautogui.FAILSAFE = True time.sleep(2)while (True): region=(646,446,320,10) im = pyautogui.screenshot(region= region) im.save("tes1t.png") for i in range(40,300,80): px=im.getpix…
前言 编写python程序有时候需要对代码块进行comment,本文对此介绍. 方法 python注释的三种方法: 1.井号注释单行代码: # 2.三个单引号或三个双引号注释语句块: ''' 或者" " " 3.井号加两个百分号画出语句块分界线: #%% 代码 ''' #data.csv is created by make_data.py data=pd.read_csv('data.csv') ''' #get X and y X=data.iloc[:,:-1].val…