1
如何在Python 3.1.x中打印文檔字符串?
我試着用re和sys模塊作爲測試,並且不斷收到錯誤。謝謝在Python 3中打印文檔字符串3
import re
print(re._doc_)
Traceback (most recent call last):
File "<pyshell#91>", line 1, in <module>
print(re._doc_)
AttributeError: 'module' object has no attribute '_doc_'
謝謝,我錯過了雙下劃線! – cloud311 2011-05-10 14:04:01