下面说法正确的是( )。知识点:列表->字符串 A: time = [23,59,59]print(":".join(time))的输出结果是23:59:59 B: time = ['23','59','59']print(":".join(time))的输出结果是23:59:59 C: time = ['23','59','59']t_str = ""for t in time: t_str += t+":"print(t_str)程序输出结果是23:59:59 D: time = [23,59,59]t_str = ""for i in range(len(time)): if i<len(time)-1: t_str += str(time[i])+":" else: t_str += str(time[i])print(t_str)程序输出结果是23:59:59
下面说法正确的是( )。知识点:列表->字符串 A: time = [23,59,59]print(":".join(time))的输出结果是23:59:59 B: time = ['23','59','59']print(":".join(time))的输出结果是23:59:59 C: time = ['23','59','59']t_str = ""for t in time: t_str += t+":"print(t_str)程序输出结果是23:59:59 D: time = [23,59,59]t_str = ""for i in range(len(time)): if i<len(time)-1: t_str += str(time[i])+":" else: t_str += str(time[i])print(t_str)程序输出结果是23:59:59
以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]="hello", q[10]= "world", *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= "hello", q[10]= "world", *t;t=p; p=q; q=t; C: char p[10]= "hello", q[10]= "world", t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= "hello", q[10]= "world", t[10];t=p; p=q; q=t;
以下程序段中能够正确实现p和q中两个字符串互换的是: A: char p[10]="hello", q[10]= "world", *t;strcpy(t,p); strcpy(p,q); strcpy(q,t); B: char p[10]= "hello", q[10]= "world", *t;t=p; p=q; q=t; C: char p[10]= "hello", q[10]= "world", t[10];strcpy(t,p); strcpy(p,q); strcpy(q,t); D: char p[10]= "hello", q[10]= "world", t[10];t=p; p=q; q=t;
下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";
下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";
下列可以正确表示字符型常数的是 。 A: "a" B: 't' C: " " D: 297
下列可以正确表示字符型常数的是 。 A: "a" B: 't' C: " " D: 297
下列可以正确表示字符型常数的是____? 297|"a"|"\n"|'\t’
下列可以正确表示字符型常数的是____? 297|"a"|"\n"|'\t’
"神马(什么)都是浮云"可翻译为: Don't take things too serious A: 正确 B: 错误
"神马(什么)都是浮云"可翻译为: Don't take things too serious A: 正确 B: 错误
.下列可以正确表示字符型常数的是( )。 A: \t B: 297 C: "\n" D: "a"
.下列可以正确表示字符型常数的是( )。 A: \t B: 297 C: "\n" D: "a"
设S="Chinese dream my dream",T="dream",则index(S, T, 3 )的值为______。 A: 0 B: 9 C: 18 D: 9和18
设S="Chinese dream my dream",T="dream",则index(S, T, 3 )的值为______。 A: 0 B: 9 C: 18 D: 9和18
中国大学MOOC: t=2020-02-29 15:48:10timestr = time.strptime(t, "%Y-%m-%d %H:%M:%S")print(time.strftime("%p %I:%M,%a,%b %d,%Y",timestr))
中国大学MOOC: t=2020-02-29 15:48:10timestr = time.strptime(t, "%Y-%m-%d %H:%M:%S")print(time.strftime("%p %I:%M,%a,%b %d,%Y",timestr))
Which of the following is not nonverbal communication?( )。 A: "She said: ‘I like that cute dog!’ " B: "She acted like she didn't want me to sit next to her." C: "I know you're angry by the look on your face!" D: "He stood there looking lost."
Which of the following is not nonverbal communication?( )。 A: "She said: ‘I like that cute dog!’ " B: "She acted like she didn't want me to sit next to her." C: "I know you're angry by the look on your face!" D: "He stood there looking lost."