摘要:
序列包括字符串,列表,元祖,序列中的每个元素都有编号,其中只有元祖不能修改 通用序列操作包括索引、 切片、 相加、 相乘和成员资格检查 索引 >>> greeting = 'Hello' >>> greeting[0] 'H' >>> greeting[-1] 'o' >>> 'Hello'[1] 阅读全文
posted @ 2019-04-19 14:57
swefii
阅读(161)
评论(0)
推荐(0)
摘要:
获取用户输入 >>> x = input("x: ") x: 34 >>> y = input("y: ") y: 42 >>> print(int(x) * int(y)) 1428 导入模块 >>> import math >>> math.floor(32.9) 32 下面这样导入就不用指定模 阅读全文
posted @ 2019-04-19 14:57
swefii
阅读(110)
评论(0)
推荐(0)

浙公网安备 33010602011771号