0
https://gcc.gnu.org/onlinedocs/cpp/Stringification.html允許對參數進行字符串化(在評估之前),這對調試很有用。我們如何在Python中做到這一點? 如:什麼是python的字符串化C預處理器宏#
def prettyprint(a):
#requires special function stringify
print(stringify('a') + ':' + str(a));
def test():
prettyprint(1+2)
# will print: 1+2:3