PYTHON_WITH_MOHAMMAD Telegram 51
اسکریپت تولید پسورد قوی در پایتون
import random
import string

def generate_password(length=12):
chars = string.ascii_letters + string.digits + string.punctuation
return ''.join(random.choice(chars) for _ in range(length))

print("Password:", generate_password())


- ایمپورت کردن کتابخانه های string و random
- ترکیب حروف، اعداد و کاراکترهای خاص
- استفاده از `random.choice()` برای تولید پسورد تصادفی

@python_with_mohammad
👍1



tgoop.com/python_with_mohammad/51
Create:
Last Update:

اسکریپت تولید پسورد قوی در پایتون

import random
import string

def generate_password(length=12):
chars = string.ascii_letters + string.digits + string.punctuation
return ''.join(random.choice(chars) for _ in range(length))

print("Password:", generate_password())


- ایمپورت کردن کتابخانه های string و random
- ترکیب حروف، اعداد و کاراکترهای خاص
- استفاده از `random.choice()` برای تولید پسورد تصادفی

@python_with_mohammad

BY آموزش پایتون و برنامه نویسی




Share with your friend now:
tgoop.com/python_with_mohammad/51

View MORE
Open in Telegram


Telegram News

Date: |

Telegram channels fall into two types: To upload a logo, click the Menu icon and select “Manage Channel.” In a new window, hit the Camera icon. Matt Hussey, editorial director of NEAR Protocol (and former editor-in-chief of Decrypt) responded to the news of the Telegram group with “#meIRL.” Administrators Telegram has announced a number of measures aiming to tackle the spread of disinformation through its platform in Brazil. These features are part of an agreement between the platform and the country's authorities ahead of the elections in October.
from us


Telegram آموزش پایتون و برنامه نویسی
FROM American