name="Zhang";ID="123"不能输出"zhang的ID号是123"结果的代码是
A: print(name,"的ID号是",ID,sep="")
B: print(name+"的ID号是"+ID)
C: print("%s的ID号是%s"%(name,ID))
D: print("%s的ID号是%s",%(name,ID))
A: print(name,"的ID号是",ID,sep="")
B: print(name+"的ID号是"+ID)
C: print("%s的ID号是%s"%(name,ID))
D: print("%s的ID号是%s",%(name,ID))
举一反三
- 输出公司的名称及id,以id的升序排列 A: SELECT name, id FROM job ORDER BY id ASC; B: SELECT name, id FROM job ORDER BY id DESC; C: SELECT name, id FROM job ORDER BY name DECS; D: SELECT name, id FROM job ORDER BY name ASC;
- 以下存储过程,正确的叙述是( )create procedure proc1@id int, @name char(10) outputasselect @name=name from students where id=@id A: @id是输出参数,@name是输出参数 B: @id是输入参数,@name是输出参数 C: @id是输入参数,@name是输入参数 D: @id是输出参数,@name是输入参数
- 下列关于匿名类正确的是()。 A: Listlist=new{Id=1,Name="张三"}; B: varstu=newStudent{Id=1,Name="张三"}; C: varstu=new{Id=1,Name="张三"}; D: publicclassvar{}varstu=new{Id=1,Name="张三"};
- hive里创建表test,表里添加两个字段id和name,以下哪个HQL是正确的( ) A: create test(id int, name string); B: create test(int id, string name); C: create table test(int id, string name); D: create table test(id int, name string)
- 下来定义表的约束语法,错误的是() A: create table t1(id number primary key,name varchar2(10)) B: create table t1(id number constraint p_k primary key(id),name varchar2(10)) C: create table t1(id number constraint p_k primary key,name varchar2(10)) D: create table t1(id number,name varchar2(10),primary key(id))