【简答题】. 写出下面程序的运行结果。 s1="I am a student." s2="C++90分Python88分Java85分" s3="I am a student.\nI like programming.\n" print(s1.split()) print(s2.split("分")) print(s2.split("分",2)) print(s3.splitlines())
【判断题】用于同一批药品生产的所有配料,应当分别存放,并做好标识
【简答题】请写出下面程序的运行结果: public class Test extends TT{ public static void main(String args[] Test t=new Test ('Tom.'); } public Test(String s){ super (s); System.out.print('How are you?'); } public Test(){ this(...
【简答题】写出下面程序的运行结果 import java.io.*; public class abc { public static void main(String args[]) { String s1 = "Hello!"; String s2 = new String("I like Java!"); System.out.println(s1+" "+s2); } }
【简答题】写出下面程序的运行结果. #include int fun(char s[]){ int n=0,i=0; while(s[i]='0') { n=10*n+s[i]-'0'; i++; } return (n); } void main() {char s[10]={'7','4','A','b','5','6','e','*'}; printf("%d\n",fun(s)); }
【简答题】写出下面程序的运行结果 : . s = 0 for i in range(1,101): s += i if i == 50: print(s) break else: print(1)
【单选题】写出下面程序的运行结果: s=0; for i=1:10 s=s+i; end s