ShareChat
click to see wallet page
search
পাইথনের মডিউল সাধারণত Built-in, User-defined এবং Third-party — এই ৩ ধরনের মডিউলের ব্যবহার পাইথনে দেখা যায়। পাইথন ইনস্টল করলেই বিল্ট-ইন বা স্ট্যান্ডার্ড মডিউলগুলো কাজ করতে শুরু করে। ইউজার নিজে যে .py ফাইল তৈরি করে তা User-defined মডিউল। numpy, pandas, matplotlib, requests, django, flask ইত্যাদি Third-party মডিউল আলাদা করে pip, pipx বা conda দিয়ে ইনস্টল করতে হয়। সাধারণত ইংরেজি ছোট হাতের অক্ষর দিয়ে মডিউলগুলো শুরু হয় এবং সাব-মডিউলগুলোর দু'একটি বড় হাতের অক্ষর দিয়ে কিম্বা সম্পূর্ণ বড় হাতের অক্ষরে লেখা হয়। এদের মধ্যে Built-in মডিউলগুলোর সম্ভাব্য বর্ণাক্রম নিম্নরূপ হতে পারে — _abc, abc, aifc, antigravity, argparse, array, ast, asyncio, atexit, audioop base64, bdb, binascii, bisect, builtins, bz2 (এ ছাড়া b দিয়ে শুরু হওয়া কয়েকটি Third-party মডিউল যেমন bytecode, bs4, bcrypt, boto3 ইত্যাদি এবং Python 2-এ buffer ছিলো।) _carbon, _codecs, _codecs_cn, _codecs_jp, _codecs_kr, _codecs_tw, _collections, _collections_abc, _compat_pickle, _compression, _contextvars, _cpython, _crypt, _csv, _ctypes, _curses, _curses_panel calendar, chunk, cmath, code, codecs, collections, compileall, concurrent, configparser, contextlib, copy, cProfile, csv, ctypes dataclasses, datetime, dbm, decimal, difflib, dis, distutils, doctest email, encodings, enum, errno, ensurepip এ ছাড়া e দিয়ে শুরু হওয়া কয়েকটি Third-party মডিউল যেমন eel, easyocr, elasticsearch, emoji, eventlet, esptool, ecdsa ইত্যাদি। faulthandler, fcntl (Unix only), filecmp, fileinput, fnmatch, fractions, functools, ftplib gc, getopt, grp (Unix group info), gzip hashlib, heapq, hmac, html, http idlelib, imaplib, importlib, inspect, io, ipaddress, itertools json keyword linecache, locale, logging, lzma mailbox, marshal, math, mimetypes, mmap, modulefinder, msvcrt, multiprocessing netrc, nt, ntpath, nturl2path, numbers opcode, operator, optparse, os pathlib, pdb, pickle, pickletools, pkgutil, platform, plistlib, poplib, posix, posixpath, pprint, profile, pstats, pty, pwd, py_compile, pyclbr, pydoc, pydoc_data, pyexpat queue, quopri random, re, readline, reprlib, resource, rlcompleter, runpy sched, secrets, select, selectors, shelve, shlex, shutil, signal, site, smtplib, socket, socketserver, sqlite3, sre_compile, sre_constants, sre_parse, ssl, stat, statistics, string, stringprep, struct, subprocess, symtable, sys, sysconfig, syslog tabnanny, tarfile, tempfile, termios, textwrap, this, threading, time, timeit, tkinter, token, tokenize, tomllib, trace, traceback, tracemalloc, tty, turtle, turtledemo, types, typing unicodedata, unittest, urllib, uuid venv warnings, wave, weakref, webbrowser, winreg, winsound, wsgiref xml, xmlrpc zipapp, zipfile, zipimport, zlib, zoneinfo modern packaging না থাকায় এখন distutils ব্যবহার করা হয় না। তবে a, b, c ইত্যাদি যে কোন বর্ণ দিয়ে শুরু হওয়া মডিউলগুলো নির্ণয় করার জন্য সহজ উপায় — import sys print(*sorted(m for m in sys.stdlib_module_names if m.startswith("a"))) # abc antigravity argparse array ast asyncio atexit ধন্যবাদ #📢শেয়ারচ্যাট স্পেশাল
📢শেয়ারচ্যাট স্পেশাল - abc abc aifc antigravity array argparse asyncio ast audioop atexit abc abc aifc antigravity array argparse asyncio ast audioop atexit - ShareChat