2018年1月9日 星期二

Python: Find the available built-in modules

Python: Find the available built-in modules

Python Basic: Exercise-78 with Solution

Write a Python program to find the available built-in modules.
Sample Solution:-
import sys
import textwrap
module_name = ', '.join(sorted(sys.builtin_module_names))
print(textwrap.fill(module_name, width=70))

========= RESTART: F:/Python_APSC/py-ex-basic-78.py =============
_ast, _bisect, _codecs, _codecs_cn, _codecs_hk, _codecs_iso2022,
_codecs_jp, _codecs_kr, _codecs_tw, _collections, _csv, _datetime,
_functools, _heapq, _imp, _io, _json, _locale, _lsprof, _md5,
_multibytecodec, _opcode, _operator, _pickle, _random, _sha1, _sha256,
_sha512, _signal, _sre, _stat, _string, _struct, _symtable, _thread,
_tracemalloc, _warnings, _weakref, _winapi, array, atexit, audioop,
binascii, builtins, cmath, errno, faulthandler, gc, itertools,
marshal, math, mmap, msvcrt, nt, parser, sys, time, winreg, xxsubtype,
zipimport, zlib
>>> 

沒有留言:

張貼留言

Node-Red --> MQTT --> Fuxa 開源碼網頁式圖控平台

Node-Red --> MQTT --> Fuxa      FUXA(一個開源的 Web HMI / SCADA 自動化監控軟體)的專案設定檔 。 這份設定檔完整定義了 HMI 監控畫面的 後端通訊(MQTT 連線、點位標籤) 與 前端網頁圖形介面(SVG 畫布...