擅长:python、mysql、java
<p>这没有有效的Python语法:</p>
<pre><code>def GEarth(self):
subprocess.Popen([r""C:\Program Files (x86)\Google\Google Earth Pro\client\googleearth.exe"]
</code></pre>
<p>注意双<code>"</code>,即<code>""</code>。
只需删除一个<code>"</code>:</p>
<pre><code>def GEarth(self):
subprocess.Popen([r"C:\Program Files (x86)\Google\Google Earth Pro\client\googleearth.exe"]
</code></pre>
<p>此外,你的压痕似乎是错误的。你知道吗</p>
<p>定义如下:</p>
<pre><code>def Excel(self):
...
def CoWeb(self):
</code></pre>
<p>必须与以下项目处于同一级别:</p>
<pre><code>def __init__(self, master):
</code></pre>