Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚC++³ÌÐòÖÐÈçºÎʹÓÃpythonº¯ÊýËù·µ»ØµÄ×Öµä

ÎÒÔÚpythonÖж¨ÒåÁËÒ»¸öº¯Êý£¬º¯Êý·µ»ØÒ»¸ö×ֵ䣬¿´ÆðÀ´´óÌåÊÇÕâ¸öÑù×ӵģº

def get_a_dic():
    dic = {}
    #ÔÚÕâÀï¶Ô×Öµä½øÐвÙ×÷
    ¡­¡­
    return dic

È»ºóÔÙC++Öе÷ÓÃÕâ¸öº¯Êý
µÃµ½Ò»¸öPyObject* pDic
ÎÒ¸ÃÔõôʹÓÃÕâ¸öpDic£¿
ÎÒÏë»ñµÃÀïÃæµÄËùÓÐKeyºÍ¶ÔÓ¦µÄvalue£¬°ÑÕâ¸ö×ÖµäÖеÄËùÓÐitemµ¼Èëµ½Ò»¸ömapÖУ¬Ó¦¸ÃÔõô×ö£¿

ÎÒÊÇÓõÄÊÇpython3.0£¬eclipse3.5 ¹Ò½Ómingw±àÒë»·¾³£¬Ã»ÓÐʹÓÃboost¿â¡£

Çë¸ßÊÖÖ¸½Ì£¡
¿´¿´http://docs.python.org/c-api/dict.html

ͬѧһÏÂ

ѧϰѧϰ


×òÌì¼Ó°àûʱ¼äÉÏCSDN
Ê®·Ö¸Ðл¸÷λµÄ»Ø´ð£¡

ÌرðÃùл notax£¡


Ïà¹ØÎÊ´ð£º

C ³ÌÐòÎÊÌâ (¶þ) - C/C++ / CÓïÑÔ

ÎÊһϣº
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

execlÔõôµ÷ÓÃjava³ÌÐò - C/C++ / CÓïÑÔ

ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£

²»»á.

ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ

ËÑË÷Ï£ºjni ......

¸ß·ÖÇó!×îºÃÊÇC/C++ - C/C++ / CÓïÑÔ

·Ö±ðÓýṹ»¯·½·¨ºÍÃæÏò¶ÔÏó·½·¨±à³ÌʵÏÖÏÂÃæÒªÇó£º
¶ÔCircleºÍRectangleʵÏÖÒÔϹ¦ÄÜCenter,Move,Rotate,Print.
×Ô¼ºÏȶ©ÒÔÏ£¬ÕâÊÇÒ»¸ö¸Õѧϰ¼ÆËã»úµÄÈËÎÊÎÒµÄ


ѧϰ£¬¿´¿´

¼ÌÐø¶¥Å¶

ѧϰÁË¡£

go o ......

C/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý - C/C++ / C++ ÓïÑÔ

´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......

¶®pythonµÄjava¸ßÊÖÇë½Ì - Java / Java SE

ÇëÎʸßÊÖ£¬pythonÀïµÄpopenÀàËÆjavaÀïµÄÄĸöÀà»òÕß·½·¨ÄØ£¿£¿ÁíÍâjython¿ª·¢java¸ÃÈçºÎʹÓÃjythonÄØ£¿£¿
1.¿ÉÄܺÍjavaÀïµÄRuntime.getRuntime().exec£¨"ϵͳÃüÁî"£©; Æô¶¯½ø³Ì
2.eclipseÏÂÔØjython ²å¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ