有谁知道从Microsoft Flow调用Python应用程序/脚本(依赖于导入的库,如熊猫)的方法是什么?
完整的问题是这样的。客户将某些内容上传到Dropbox(这是他的ERP的工作方式)。此操作已链接到我们的Microsoft Flow,因此无论他何时上载,Microsoft Flow都会对其进行注册(现在它只是将其重定向到我们)。我需要做的就是在他上传文件后,在Dropbox中的该文件上运行Python应用程序/脚本。我可以将Python直接放入该Dropbox。我不知道如何触发它并确保它运行(被解释)。
感谢您的任何建议。
从矢量读取时,我将值放入零中.我有:
class Graph {
public:
vector<Vertex> vertices;
};
class Vertex {
public:
vector<int> adjacentVertices;
};
Run Code Online (Sandbox Code Playgroud)
在我的加载方法然后:
int vertices, edges;
cin >> vertices >> edges;
Graph mainGraph;
mainGraph.vertices.reserve(static_cast<unsigned int>(vertices));
int tmp1, tmp2;
for (int i = 0; i < edges; i++) {
cin >> tmp1 >> tmp2;
mainGraph.vertices[tmp1].adjacentVertices.push_back(tmp2);
cout << mainGraph.vertices[tmp1].adjacentVertices.size(); //PRINTS NUMBERS -> SEEMS OKAY
}
cout << mainGraph.vertices.size(); //IS ZERO???
for(const Vertex &v : mainGraph.vertices){ //CRASHES
cout << v.adjacentVertices.size();
}
Run Code Online (Sandbox Code Playgroud)
我打赌这是非常愚蠢的,但我错过了什么?我读过如果不需要特殊的构造函数,向量将在使用时自行构造.
我的 Java 实体中有这样的属性:
@Basic(fetch = FetchType.LAZY) //I tried without this as well
@Column(name = "value_x", columnDefinition = "bigint default 0")
private Long valueX;
Run Code Online (Sandbox Code Playgroud)
在 pgAdmin 的表定义中,我看到:
value_x bigint DEFAULT 0,
Run Code Online (Sandbox Code Playgroud)
但是当插入对象时(此属性为空),列为空/空,没有插入 0 值。
任何人都会知道为什么它不插入默认值?使用 EclipseLink。
c++ ×1
dropbox ×1
eclipselink ×1
entity ×1
jakarta-ee ×1
jpa ×1
pandas ×1
postgresql ×1
python ×1
vector ×1