how to sort date output in python. I have my code which pulls role info from aws. Want to sort this output in ascending order based on time and date

前端 未结 0 513
无人共我
无人共我 2021-02-14 19:51
#!/usr/bin/python3
import boto3

client = boto3.client(\'iam\')
iam = boto3.resource(\'iam\')
roles = client.list_roles()
for r in roles[\'Roles\']:
       roles = iam.R         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题