Python 3.x 无法使脚本与上下文菜单一起工作或计算哈希

Python 3.x 无法使脚本与上下文菜单一起工作或计算哈希,python-3.x,Python 3.x,我想制作一个python脚本,它可以获取文件的sha256哈希值,并用病毒总数检查它。我找不到如何使用文件上下文菜单,也找不到正确的哈希命令 以下是我到目前为止所做的 import hashlib import webbrowser hash = "hash" #calculate the hash webbrowser.open(f"https://www.virustotal.com/gui/file/{hash}/detection") #check with virustotal

我想制作一个python脚本,它可以获取文件的sha256哈希值,并用病毒总数检查它。我找不到如何使用文件上下文菜单,也找不到正确的哈希命令 以下是我到目前为止所做的

import hashlib
import webbrowser
hash = "hash"  #calculate the hash
webbrowser.open(f"https://www.virustotal.com/gui/file/{hash}/detection")  #check with virustotal