我最近在 VS Code 中使用 Python 创建了一个应用程序。我做了一些修改,现在左上角的“运行”按钮消失了。我只能以调试模式运行应用程序。我已经尝试点击另一个帖子中建议的小错误。当我与 Github 共享代码时,它在我的 MacBook 上执行相同的操作。如果我在新文件中运行相同的代码,“运行”按钮就会回来。

您有什么方法可以解决这个问题而无需创建新文件吗?
我正在使用其他人编写的库,它有点基于 C 用于 C++ 用法-我认为-。头文件或源文件中使用的所有包含内容都采用 <> 而不是 "" 的形式,即使它们不是标准库文件。我的编译器无法识别它们并返回错误“找不到文件”
问题的一个示例位于以下标题中:
#ifndef _ga_ga_h_
#define _ga_ga_h_
// Make sure that we get the configuration into each of the galib components
// that will be used.
#include <ga/gaconfig.h>
// These are the headers for all of the genetic algorithm classes.
#include <ga/GASimpleGA.h>
#include <ga/GASStateGA.h>
#include <ga/GAIncGA.h>
#include <ga/GADemeGA.h>
#include <ga/GADCrowdingGA.h>
// Here we include the headers for all of the various genome types.
#include <ga/GA1DBinStrGenome.h>
#include <ga/GA2DBinStrGenome.h>
#include <ga/GA3DBinStrGenome.h>
#include <ga/GABin2DecGenome.h>
Run Code Online (Sandbox Code Playgroud)
我使用 #include …