Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UbuntuでPythonを使用しています。 call(["xdotool", "mousemove", "500","600"])正常に動作します。
call(["xdotool", "mousemove", "500","600"])
しかし、もしx=500、y=600
x=500
y=600
call(["xdotool", "mousemove", "x","y"]) 動作しません。
call(["xdotool", "mousemove", "x","y"])
xandの構文は何yですか?
x
y
このように使用します
call(["xdotool", "mousemove", str(x), str(y)])
xとyは、データを指している変数です。しかし、あなたが言うとき"x"、"y"あなたはデータそのものを渡しています。
"x"
"y"