第十章,探索 Windows 取证工件配方第二部分,继续利用在第八章中开发的框架,处理取证证据容器配方,来处理取证证据容器中的更多 Windows 工件。这些工件包括预取文件、事件日志、Index.dat、卷影副本和 Windows 10 SRUM 数据库。 本书所需的内容 为了跟随并执行本食谱中的配方,使用一台连接到互联网的计算机,并安装最...
importtkinter Win=tkinter.Tk()Win.title("这是标题")Win.geometry("400x400+200+200")LabelRed=tkinter.Label(Win,text="Red",fg="Red",relief='groove')LabelRed.grid(column=2,row=0)LabelGreen=tkinter.Label(Win,text="绿色",fg="green",relief='groove')LabelGreen.grid(column=0,row=1)LabelBl...
import xlrd xlsx = xlrd.open_workbook('./3_1 xlrd 读取 操作练习.xlsx')# 通过sheet名查找:xlsx.sheet_by_name("sheet1")# 通过索引查找:xlsx.sheet_by_index(3)table = xlsx.sheet_by_index(0)# 获取单个表格值 (2,1)表示获取第3行第2列单元格的值value = table.cell_value(2, 1) print("...
conn_str = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server}; SERVER=<server>; DATABASE=tpcxbb_1gb; UID=<username>; PWD=<password>') input_query = '''SELECT ss_customer_sk AS customer, ROUND(COALESCE(returns_count / NULLIF(1.0*orders_count, 0), 0), 7) AS...
[1,5,1,4,3,4,4] # First column >>> b = [9,4,0,4,0,2,1] # Second column >>> ind = np.lexsort((b,a)) # Sort by a, then by b >>> print ind [2 0 4 6 5 3 1] >>> >>> [(a[i],b[i]) for i in ind] [(1, 0), (1, 9), (3, 0), (4, 1), (...
df.set_index([ [0,1,2,3] ]) keys : column label or list of column labels / arrays drop : 默认True,成为索引后,删除原数据列 append : 默认False,追加索引,删除原索引 inplace : 默认False,返回新数据集,不修改原数据集 verify_integrity : boolean, default False ...
the sorted keys will be used as the `keys`argument, unless it is passed, in which case the values will beselected (see below). Any None objects will be dropped silently unlessthey are all None in which case a ValueError will be raised.axis : {0/'index', 1/'columns'}, default 0The...
# importing pandas packageimportpandasaspd# making data frame from csv filedata = pd.read_csv("employees.csv")# setting first name as index columndata.set_index("First Name", inplace =True)# displaydata.head() 输出: 如输出图像中所示,索引列之前是一系列数字,但后来已被名字替换。
0,0)写一个自动化的小脚本deff():sht_3.range("A1:AZ48").column_width=1.1sht_3.range(...
import xlwings as xw 注: xlwings的更新和卸载和python其他的库的操作一致,不在赘述 三. 实践操作 3.1. 创建新的Excel文件 # 方法1: # 创建一个新的App,并在新App中新建一个Book wb = xw.Book() wb.save('1.xlsx') wb.close() # 方法2: # 当前App下新建一个Book # visible参数控制创建文件...