質問

How do you print doc strings in python 3.1.x?
I tried with the re and sys modules as a test and I keep getting errors. Thanks

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_'

正しい解決策はありません

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top