python 隨筆

Iris
Sep 24, 2021

--

  • [::-1] 順序相反操作
  • [-1] 讀取倒數第一个元素
  • [3::-1] 從index 3開始翻轉讀取
  • 隨機排序

import random

random.shuffle(list)

  • descending order

list.sort(reverse = true)

  • Counter 用法
input/output example

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Iris
Iris

Written by Iris

Machine/Deep Learning, Image Processing and Computer Vision

No responses yet

Write a response