题解 | #截取字符串#
截取字符串
http://www.nowcoder.com/practice/a30bbc1a0aca4c27b86dd88868de4a4a
这题难度中等多少有点离谱
while True:
try:
strings, k = input(), int(input())
print(strings[:k])
except EOFError:
break
截取字符串
http://www.nowcoder.com/practice/a30bbc1a0aca4c27b86dd88868de4a4a
这题难度中等多少有点离谱
while True:
try:
strings, k = input(), int(input())
print(strings[:k])
except EOFError:
break
相关推荐