• 2022-06-18
    已知有一个名为names的空列表,如何向其中添加old_driver,rain,jack,shanshan,peiqi,black_girl 元素?
    A: names.append("old_driver","rain","jack","shanshan","peiqi","black_girl")
    B: names.extend("old_driver","rain","jack","shanshan","peiqi","black_girl")
    C: names.insert("old_driver","rain","jack","shanshan","peiqi","black_girl")
    D: names.extend(["old_driver","rain","jack","shanshan","peiqi","black_girl"])
  • D

    举一反三

    内容

    • 0

      把一个JSON格式数据赋给变量color:color = &quot色彩":[ &quot暖色":[&quot红",&quot橙",&quot黄"], &quot冷色":[&quot青",&quot蓝"], &quot中性色":[&quot紫",&quot绿",&quot黑",&quot灰",&quot白"] ]以下能够取到冷色“[&quot青",&quot蓝"]”的是哪一个选项?_

    • 1

      下面语句中,正确的是( )。 A: printf("%c ","student"); B: printf("%c ","c"); C: printf("%s ",&a); D: printf("%s ","hello");

    • 2

      C语言空语句是由一个( )构成的。 A: 冒号":" B: 分号";" C: 逗号"," D: 句号"."

    • 3

      R 语言中,代表注释语句起始的符号是( )。 A: "," B: ";" C: ":" D: " E: "

    • 4

      id选择器使用_______________进行标识,后面紧跟id名。 A: " B: " C: "&" D: "@" E: "$"