擅长:python、mysql、java
<blockquote>
<p>This works fine except a blank tkinter window pops up every time this executes.</p>
</blockquote>
<p>您可以隐藏此窗口:</p>
<pre><code>from tkinter import Tk
root = Tk()
root.withdraw()
number = root.clipboard_get()
</code></pre>