07 2021 档案
摘要:# python 当中的索引# str1 = 'abcdefghijk''''索引:正向索引:从0开始算起,从做到右数负向索引:从-1开始算起,从右到左数'''# print(str1[0]) # 打印的结果a# print(str1[3]) # 打印的结果d# print(str1[10]) #
阅读全文
摘要:# print('hello,duoceshi') # print是Python中的默认打印方式# name = 'hello,duoceshi' # 定义了一个name变量,把hello,duoceshi这个值赋予给name变量# print(name) # 打印name变量的值# Python格
阅读全文
浙公网安备 33010602011771号