queue = []
# Adding elements to the queue
queue.append('1')
queue.append('2')
queue.append('3')
print("Initial queue")
print(queue)
# Removing elements from the queue
print("\nElements dequeued from queue")
print(queue.pop(0))
print(queue.pop(0))
print(queue.pop(0))
print("\nQueue after removing elements")
print(queue)
And then just add a user ID section
1条答案
按热度按时间9udxz4iz1#