#469. python1
python1
题目描述
给定字符串 s = "hellopython" 请写出代码,完成以下操作: 截取前 5 个字符 截取从索引 3 到末尾的字符 截取最后 4 个字符 倒序输出整个字符串
输入格式
输出格式
一行表示答案。
hello
loPython
thon
nohtypolleh
数据范围
的数据,
的数据,
的数据,,。
给定字符串 s = "hellopython" 请写出代码,完成以下操作: 截取前 5 个字符 截取从索引 3 到末尾的字符 截取最后 4 个字符 倒序输出整个字符串
一行表示答案。
hello
loPython
thon
nohtypolleh
30% 的数据,1≤n≤20
60% 的数据,1≤n≤1000
100% 的数据,1≤n≤100000,1≤c,ai≤20000。