Ask Gemini: "How do I get the first item from a list?"
abbassix
·
2026-05-07
·
via Hacker News: Ask HN
 | |
I got: > python
> my_list = ['apple', 'banana', 'cherry']
> first_item = my_list[0]
> print(first_item) # Output: apple
I've probably have been making too many questions about python... |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。