65,207
社区成员
发帖
与我相关
我的任务
分享#Filename showgml.py
from igraph import *
def show():
g = Graph.Read_GML("d:\\football.gml")
plot(g)// mytestpython.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "python.h"
int _tmain(int argc, _TCHAR* argv[])
{
Py_Initialize();
if(!Py_IsInitialized())
{
return -1;
}
PyRun_SimpleString("execfile('C:\\Python27\\showgml.py')");
Py_Finalize();
return 0;
}
print 'Hello, world!!'
也可正常运行。