列表_索引_index_中括号_索引函数 回忆
寻找更多等宽字体
for n in range(256, 15000): print(chr(n), end=" ")
物理单位
更多物理量
㍰
询问ai
提问
转化 0x3358 chr(13144) chr(0x3358) chr(0x3358+12)
日期
日期
dates = [] for n in range(0x33e0,0x33ff): dates.append(chr(n)) print(dates)
输出日期 dates2
months months = [] for num in range(0x33e0, 0x33ff): months.append(chr(num)) months2 + dates2
再次回忆字符串
尝试 char_list = list("oeasy")
索引值 越界
查询文档
索引
指出
食指
图书的目录
帮助手册 help(list)
index char_list = list("oeasy")
char_list.index("o")
绕一圈 char_list char_list.index("o") char_listchar_list.index("o")
char_listchar_list.index("e") char_listchar_list.index("a") char_listchar_list.index("s") char_listchar_list.index("y")
先查元素再求索引 char_list char_list0 char_list.index(char_list0)
char_list.index(char_list1) char_list.index(char_list2) char_list.index(char_list3) char_list.index(char_list4)
列表项的修改
char_list = list("oeasy") char_list2 = "A"
字符串索引运算
总结
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有