关于字符串下列说法错误的是()
A. 一个字符应该视为长度为1的字符串。
B. 字符串以\0标志字符串的结束。
C. 既可以用单引号,也可以用双引号创建字符串。
D. 在三引号字符串中可以包含换行回车等特殊字符。
以下程序运行的结果是( )?x = "Life is short,I use Python!"print(x.split())
A. Life is short,I use Python!
B. [Life, is, short, I, use ,Python!]
C. [“Life”, “is”,“short,”,“I”,“use”,“Python!”]
D. {“Life”, “is”,“short,”,“I”,“use”,“Python!”}
Which one is right places where pauses should be made.
A. Most // of us like to eat potatoes.
But most //people do not know what part of the potato is best for food
C. Hold the slice// between youreyes// and the light.
D. You will see //that the potato has a skin, an outside rimand an inside part.
Which one is right places where pauses should be made.
A. Recently// I attended several meetings// where we talked about// ways to retain students //and keep younger faculty members// from going elsewhere.
B. Recently I// attended several meetings //where we talked about ways// to retain students //and keep younger faculty members from going //elsewhere.
C. Recently// I attended several meetings// where we talked //about ways to retain students and// keep younger faculty members from going// elsewhere.
D. Recently I// attended several meetings where we talked about ways// to retain students// and keep younger faculty members //from going elsewhere.
Which one is right places where pauses should be made.
According to// a new study from Cornell University’s Food and //Brand Lab, //small non-food rewards—//like the toys in McDonald’s Happy Meals—//stimulate the same reward centers// in the brain //as food does.
B. According to a new study// from Cornell University’s Food //and Brand Lab, //small non-food rewards—//like the toys in McDonald’s Happy Meals—//stimulate the same reward centers// in the brain //as food does.
C. According to a new study// from Cornell University’s Food and// Brand Lab, //small non-food rewards—//like the toys in McDonald’s Happy Meals—//stimulate the same reward centers// in the brain //as food does.
D. According to// a new study from Cornell University’s Food //and Brand Lab, //small non-food rewards—//like the toys in McDonald’s Happy Meals—//stimulate the same reward centers// in the brain //as food does.