执行以下代码,运行结果()。 defsplit(s): returnsplit(“a”) s=’Happybirthdaytoyou!’ print(split(s)) A: [‘H’,‘ppybirthd’,‘ytoyou!’] B: “Happybirthdaytoyou!” C: 程序执行错误 D: [‘Happy’,‘birthday’,‘to’,‘you!’]
执行以下代码,运行结果()。 defsplit(s): returnsplit(“a”) s=’Happybirthdaytoyou!’ print(split(s)) A: [‘H’,‘ppybirthd’,‘ytoyou!’] B: “Happybirthdaytoyou!” C: 程序执行错误 D: [‘Happy’,‘birthday’,‘to’,‘you!’]
执行以下代码,运行结果defsplit(s):returns.split("t")s="Happybirthdaytoyou!"print(split(s)) A: 运行出错 B: ["&quot","Happy&quot",null,"&quot","birthday&quot",null,"&quot","to&quot",null,"&quot","you!&quot"] C: ["Happybir","&nbsp","hday","&nbsp","oyou!"] D: ["Happy","&nbsp","bir","&nbsp","hday","&nbsp","o","&nbsp","you!"]
执行以下代码,运行结果defsplit(s):returns.split("t")s="Happybirthdaytoyou!"print(split(s)) A: 运行出错 B: ["&quot","Happy&quot",null,"&quot","birthday&quot",null,"&quot","to&quot",null,"&quot","you!&quot"] C: ["Happybir","&nbsp","hday","&nbsp","oyou!"] D: ["Happy","&nbsp","bir","&nbsp","hday","&nbsp","o","&nbsp","you!"]
1