在 Python 中输出“Hello World”的正确语法是什么?

simple

Quiz
•
Computers
•
University
•
Hard

Shiwen Zhang
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
print("Hello World")
echo "Hello World"
echo("Hello World");
p("Hello World")
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
如何在 Python 代码中插入注释?
#This is a comment
/*This is a comment*/
//This is a comment
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
哪一个不是合法的变量名?
my-var
_myvar
my_var
Myvar
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
如何创建一个数值为 5 的变量?
其他两个答案都是正确的
x = int(5)
x = 5
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python 文件的正确文件扩展名是什么?
.py
.pyt
.pt
.pyth
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
如何创建一个带有浮点数 2.8 的变量?
其他两个答案都是正确的
x = float(2.8)
x = 2.8
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
在 Python 中输出变量或对象类型的正确语法是什么?
print(type(x))
print(typeof x)
print(typeof(x))
print(typeOf(x))
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
5-函数

Quiz
•
University
15 questions
HSC YEP 2021

Quiz
•
University
10 questions
6-文件操作

Quiz
•
University
7 questions
ESBrotherX_Medical AI_Lecture

Quiz
•
University
14 questions
网络与通讯2

Quiz
•
10th Grade - University
10 questions
Ch09-Main Memory_part1

Quiz
•
University
10 questions
2-列表与元组

Quiz
•
University
10 questions
Ch09-Memory Management_part02

Quiz
•
University
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Computers
10 questions
Identifying equations

Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor

Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz

Quiz
•
University
71 questions
Logos

Quiz
•
3rd Grade - University
8 questions
Mali - Geography

Quiz
•
University