在 Python 中,單行註解使用哪個符號?

Python 程式碼基礎

Quiz
•
Computers
•
10th Grade
•
Medium
玉曄 陳
Used 13+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
//
#
/*
--
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Python 中的基本資料型態,用type( )指出的型態,何者錯誤?
int整數
float浮點數
string字串
bool布林值
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
要取得字串的倒序排列,應使用哪個語法?
A) str[::-1]
B) str.reverse()
C) str.split()
D) str.sort()
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,哪個函數用來輸出資料?
input()
print()
output()
display()
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
使用哪個方法可以將字串轉換為整數?
str()
int()
float()
bool()
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,哪個運算符用於取餘數?
A) +
B) -
C) *
D) %
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
在 Python 中,如何使用 if 條件判斷?
if (條件) { }
if 條件:
if [條件]
if {條件}
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Recuparacion 10 CP

Quiz
•
10th Grade
22 questions
Python Data Types Quiz

Quiz
•
10th Grade
21 questions
Python бағдарламау тілінен тест сұрақтары

Quiz
•
9th - 12th Grade
20 questions
11900系發101-120

Quiz
•
9th - 12th Grade
20 questions
Язык программирования Python

Quiz
•
1st - 10th Grade
20 questions
Basics Python

Quiz
•
8th - 10th Grade
20 questions
Python variables and operators quiz

Quiz
•
9th - 12th Grade
20 questions
CodeHS - Intro to Python - Basics and Console Interaction

Quiz
•
9th Grade - Professio...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University