遍匈 / Python縮殻 /

Python dir()痕方

艇辛參聞喘坪崔議dir()痕方双竃匯倖協吶斤嵆議炎紛憲。箭泌?斤噐匯倖庁翠?淫凄壓庁翠嶄協吶議痕方?窃才延楚。

輝低公dir()戻工匯倖庁翠兆忖扮?万卦指壓椎倖庁翠嶄協吶議兆忖議双燕。輝短嗤葎凪戻工歌方扮, 万卦指輝念庁翠嶄協吶議兆忖議双燕。

dir() 痕方訟箭?
>>> import sys # 資誼奉來双燕?壓宸戦頁sys庁翠議奉來双燕

>>> dir(sys)
['__displayhook__', '__doc__', '__excepthook__', '__name__', '__package__', '__stderr__', '__stdin__', '__stdout__', '_clear_type_cache', '_compact_freelists','_current_frames', '_getframe', 'api_version', 'argv', 'builtin_module_names', 'byteorder', 'call_tracing', 'callstats', 'copyright', 'displayhook', 'dllhandle', 'dont_write_bytecode', 'exc_info', 'excepthook', 'exec_prefix', 'executable','exit', 'flags', 'float_info', 'getcheckinterval', 'getdefaultencoding', 'getfilesystemencoding', 'getprofile', 'getrecursionlimit', 'getrefcount', 'getsizeof','gettrace', 'getwindowsversion', 'hexversion', 'intern', 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 'ps1', 'ps2', 'setcheckinterval', 'setprofile', 'setrecursionlimit', 'settrace', 'stderr', 'stdin', 'stdout', 'subversion', 'version', 'version_info', 'warnoptions', 'winver']

>>> dir() # 資誼輝念庁翠議奉來双燕
['__builtins__', '__doc__', '__name__', '__package__', 'sys']

>>> a = 5 # 幹秀阻匯倖仟延楚 'a'

>>> dir()
['__builtins__', '__doc__', '__name__', '__package__', 'a', 'sys']

>>> del a # 評茅/卞茅匯倖兆忖

>>> dir()
['__builtins__', '__doc__', '__name__', '__package__', 'sys']

>>>

万頁泌採垢恬議?
遍枠?厘断心欺壓擬秘sys庁翠貧聞喘聞喘dir。厘断嬬心欺庁翠淫根議賞寄議奉來双燕。

隼朔?厘断聞喘短嗤勧弓歌方議dir痕方。潮範秤趨和?万卦指庁翠議奉來議双燕。廣吭?擬秘庁翠議双燕挽隼頁宸倖双燕議匯何蛍。

葎阻心欺 dir壓軟恬喘?厘断協吶阻匯倖仟議延楚?旺葎凪験峙?隼朔殊臥dir?厘断窟孖双燕嶄耶紗阻匯倖揖兆延楚。厘断聞喘del囂鞘卞茅輝念庁翠議延楚賜奉來?壓 del痕方議補竃嶄延晒壅肝誼欺悶孖。

購噐del議匯泣廣吭並?--宸倖囂鞘喘噐評茅匯倖延楚/奉來?囂鞘塰佩朔?宸戦頁del a?低音嬬壅恵諒延楚a--祥崧万貫栖功云短嗤贋壓狛。

廣吭?dir()痕方斤販採斤嵆脅軟恬喘。箭泌?塰佩dir('print')栖僥楼print痕方議奉來議厚謹岑紛?賜塰佩dir(str)僥楼str窃議奉來議厚謹岑紛。

AltStyle によって変換されたページ (->オリジナル) /