赞
踩
- #coding=utf-8
- l = [1, 2, 3]
- l = l[::-1]
- '''
- class slice(stop)
- class slice(start, stop[, step])
- '''
-
- # input
- x = input("Please input x:")
- # output
- print(x) # 默认换行
- print(x, end = '') #不换行
- print("%d %d" % (l[0], l[1])) # 格式化输出
'运行
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。