【发布时间】:2021-05-03 01:07:48
【问题描述】:
/我正在为整个项目启用一项功能,我需要保留启用的代码段,我需要使用 python 脚本删除。 示例:下面的代码在 text.c 中可用“甜蜜来了”在整个项目中启用.. 执行脚本后 text.c 应该像输出 /
#include <stdio.h>
#include <main.h>
#if define (sweety is coming)
do somethinhg
#else
hey
#if define (lalli is coming)
please go away
#endif
#endif
if(great)
do something something
you can stop the Program
输出:
#include <stdio.h>
#include <main.h>
do somethinhg
if(great)
do something something
you can stop the Program
【问题讨论】:
标签: python c python-3.x list python-2.7