我尝试制作图形计算器但收到此错误

I try make a Graphic calculator but receive this error

我尝试制作图形计算器但收到错误消息
我检查了所有内容,但我的程序无法运行

what is the problem of geometry types?

这是我的代码

from tkinter import *
from PIL import *
#============================= Main =============================
window = Tk()
window.geometry(650*825)
window.title('Calculator')
window.resiable(width=False,height=False)
window.configure(bg = 'gray')
photo_bg = PhotoImage(file=r'C:\Desktop\Captudsdre.png')
label_bg = Label(window,image=photo_bg)
label_bg.place(x=100,y=150)

这是错误。

PS C:\Users\Lenovo\v.s.code projects> & "C:/Program Files/Python310/python.exe" "c:/Users/Lenovo/v.s.code projects/file.py"
Traceback (most recent call last):
  File "c:\Users\Lenovo\v.s.code projects\file.py", line 5, in <module>
    window.geometry(650*825)
  File "C:\Program Files\Python310\lib\tkinter\__init__.py", line 2073, in wm_geometry
    return self.tk.call('wm', 'geometry', self._w, newGeometry)
_tkinter.TclError: bad geometry specifier "536250"

任何人,请告诉我电路板几何形状出了什么问题,我该如何纠正错误?

window.geometry(“650x825”)

正如 @Aaron 在评论中所解释的那样:

typing 650*825 will multiply those literal numbers before passing the result to the window.geometry function. That function instead wants a string (with single or double quotes) to represent the window size, and an "x" rather than "*": window.geometry("650x825")

因为在 python 中 650*825 是乘法,所以你只是传递他们的乘积,而 .geometry 函数需要一个字符串 "widthxheight"