在 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 Wayground
20 questions
แบบทดสอบ Python เบื้องต้น

Quiz
•
9th - 12th Grade
22 questions
113下學期七年級測驗

Quiz
•
7th Grade - University
23 questions
HKDSE 資訊及通訊科技科 試算表及數據庫

Quiz
•
10th - 12th Grade
16 questions
Python Basics

Quiz
•
KG - University
15 questions
Python Basics

Quiz
•
KG - University
20 questions
11900系發121-140

Quiz
•
9th - 12th Grade
20 questions
11900系發21-40

Quiz
•
9th - 12th Grade
19 questions
J3 Arduino Quiz

Quiz
•
10th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade