相关疑难解决方法(0)

你会如何在Python中执行等效的预处理程序指令?

有没有办法在Python中执行以下预处理程序指令?

#if DEBUG

< do some code >

#else

< do some other code >

#endif
Run Code Online (Sandbox Code Playgroud)

python preprocessor directive equivalent

61
推荐指数
5
解决办法
3万
查看次数

标签 统计

directive ×1

equivalent ×1

preprocessor ×1

python ×1