from uuid import uuid4 # 產生 UUID4 unique_id = uuid4() print(f"UUID4: {unique_id}") print(f"UUID4(字串格式): {str(unique_id)}")