reverse() 메서드는 요소의 정렬 순서를 반대로 합니다.
매개변수는 없습니다.
fruits = ['apple', 'banana', 'cherry'] fruits.reverse() print(fruits)
결과
['cherry', 'banana', 'apple']
11 파이썬에서 string, datetime으로 정렬하기
13 python에서 에러가 생겨도 계속 실행하는 방법
13 python에서 TikTokLive.types.errors.LiveNotFound 에러 해결방법
13 Pytube 쓸 때 pytube.exceptions.RegexMatchError: get_throttling_function_name: could not find match for multiple 에러 해결방법
14 에러가 있는데 Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings'
© 2022 pinfo. All rights reserved.