案例,输入“Hello I am there!” 输出“there am I Hello!” 程序简单直接上 import java.util.Scanner;public class A{public static void main(String[] args){//Scanner scan = new Scanner(System.
题目21:倒叙取出每一个单词的第一个字母,I am a good boy! 方法1: #encoding=utf-8s="I am a good boy"result=[]for i in s.split()[::-1]:result.append(i[0])print(result) 方法2: #encoding=utf-8s="I am a good boy"s=s