You want to get this value from Python 3 list.

Asked 2 years ago, Updated 2 years ago, 61 views

list = [{'`ur`l': 'https://cdn.discordapp.com/attachments/388321676150046720/390998168218894340/unknown.png', 'proxy_url': 'https://media.discordapp.net/attachments/388321676150046720/390998168218894340/unknown.png', 'filename': 'unknown.png', 'id': '390998168218894340', 'width': 1209, 'size': 24297, 'height': 160}] 

There's a list like this.

How do I get the url value from the list?

python list

2022-09-22 19:18

1 Answers

list = [{'ur'l': https://cdn.discordapp.com/attachments/388321676150046720/390998168218894340/unknown.png', 'proxy_url': 'https://media.discordapp.net/attachments/388321676150046720/390998168218894340/unknown.png', 'filename': 'unknown.png', 'id': '390998168218894340', 'width': 1209, 'size': 247, 'height']


print(list[0]['`ur`l'])

list[0~N]['url']


2022-09-22 19:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.