vbs可以呼叫python指令碼嗎

2021-03-19 18:28:25 字數 412 閱讀 4907

1樓:匿名使用者

可以,在vbs中用wshell.run執行指令碼檔案,前提是你係統中已部署好pyhton:

set oshell = wscript.createobject ("wscript.shell")

oshell.run "s.py"

set oshell = nothing

效果如下:

2樓:匿名使用者

可以啊,在vbs中用wshell.run執行指令碼:

set oshell = wscript.createobject ("wscript.shell")

oshell.run "c:\\test.py"

set oshell = nothing

前提是你的本機可已部署好python

vbs指令碼執行提示,需要安裝什麼

這麼專業的東西,真是搞不懂!不好意思!vbs呼叫軟體執行,執行結束,彈出對話方塊,需要點選確定按鈕,請問需要什麼命令?20 dim wshshell set wshshell createobject wscript.shell wshshell.run c 這裡是路徑 路徑 程式.exe msgb...

關於python呼叫函式問題,python中關於函式呼叫的問題提

蛋疼的公司網路bai,看不到 du首先確認下是否import成功zhi了dao比如你importknn那你呼叫的時候專要寫knn.classify0不然就寫fromknnimport 然後 屬就可以直接呼叫了 預設你放在同個目錄下 python中關於函式呼叫的問題提 10 def add pram1...

python中呼叫自身問題

1 應bai該是一直在反覆執行dupopen那句吧2 直接調zhi用另一個就可以 dao吧版 a.py import os with open a.txt a as fw fw.write start a.py n os.popen b.py with open a.txt a as fw fw.w...