KiRaSmile
all right?

字符串中输出奇数字符

2019-03-12 Python
Word count: 6 | Reading time: 1min
a = input()
print(a[0::2])

Author: KiRaSmile

Link: http://yoursite.com/2019/03/12/字符串中输出奇数字符/

Copyright: All articles in this blog are licensed under CC BY-NC-SA 3.0 unless stating additionally.

< PreviousPost
API为何物
NextPost >
python随机获得1-9数字放入列表中
CATALOG