

Массивы 1
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Hard
Екатерина Иванова
Used 6+ times
FREE Resource
12 Slides • 0 Questions
1
Массивы
2
Массив — это последовательность
однотипных элементов, где
каждый элемент имеет
свой порядковый номер.
3
Все элементы массива одного типа — однородность.
Размер массива задаётся один раз и не меняется на протяжении работы программы — постоянство.
Ко всем элементам массива имеется одинаковый доступ — равнодоступность.
Все элементы массива располагаются последовательно в ячейках оперативной памяти — последовательность расположения.
Элементы массива однозначно идентифицируются своими индексами — индексация.
Индексы должны быть простым порядковым типом данных — упорядоченность.
Свойства массива
4
import array
5
x=array.array('i')
#Заполним массив
6
x=array.array('i')
x.append()
#Забыли еще один ящик
append - Добавить в конец
7
x=array.array('i')
x.pop()
#Забрать апельсин
pop() - удалить последний элемент(или по индексу)
8
x=array.array('i')
x.remove()
#Забрать апельсин
remove() - удалить по значению
9
x=array.array('i')
x.[индекс]=5
#Замена
x[] - замена
10
x=array.array('i')
x.[индекс]=x.[индекс]*10
#Замена большая
x[] - замена
10
11
x=array.array('i')
min(x), max(x), sum(x)
#MIN MAX SUM
12
#Сколько ящиков, где четное количество
Массивы
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
10 questions
Trắc nghiệm thao giảng
Presentation
•
10th Grade
7 questions
UFCD 6074 - A04 - PAL, PLA e Circuitos Programáveis
Presentation
•
10th Grade
7 questions
Pemrograman Dasar
Presentation
•
10th Grade
6 questions
Refleksi - Berpikir Komputasional
Presentation
•
10th Grade
9 questions
Limiting reactants and Percentage yield
Presentation
•
10th Grade
6 questions
PENGENALAN INFORMATIKA
Presentation
•
10th Grade
11 questions
Lesson 1.1 Midpoint Formula
Presentation
•
9th - 10th Grade
7 questions
Sistema Escalonado
Presentation
•
10th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade