我需要为下面的随机密码生成器编写一个伪代码。我该如何编写伪代码 请帮帮我。谢谢你。
import random
import string
print('hello, Welcome to Password generator!')
l = False
while not l:
length = int(input('\nEnter the length of password: '))
if length < 8 :
print('You password length is too short(must be more than 8 character)')
print(length, "is the length of your password")
elif length > 16:
print('You password length is too long(must be less than 17 character)')
print(length, "is the length of your password")
else:
print('You password length looks good')
break
lower = string.ascii_lowercase
upper = string.ascii_uppercase
num = string.digits
symbols = string.punctuation
all = lower + upper + num + symbols
temp = random.sample(all,length)
password = "".join(temp)
print(password)