问题遇到的现象和发生背景
在vscode中无法弹出pygame窗口
问题相关代码,请勿粘贴截图
import pygame,sys
pygame.init()
pygame.display.set_mode[[444,555]]
pygame.display.set_caption("pygame")
while True:
pass
运行结果及报错内容
没有报错,显示单个文件打开多文件
我想要达到的结果
能够弹出pygame窗口
在vscode中无法弹出pygame窗口
import pygame,sys
pygame.init()
pygame.display.set_mode[[444,555]]
pygame.display.set_caption("pygame")
while True:
pass
没有报错,显示单个文件打开多文件
能够弹出pygame窗口
pygame.display.set_mode之后是()圆括号, 不是方括号[]
pygame.display.set_mode([444,555])