본문 바로가기 메뉴 바로가기

Python World

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Python World

검색하기 폼
  • 분류 전체보기 (51)
    • Basic (7)
    • Standard Library (4)
      • built-in functions (1)
    • OOP (1)
    • Web Crawling (2)
    • Test Driven Development (6)
    • Django (20)
    • Microservices (2)
    • Vue.js (1)
    • 구매후기 (1)
  • 방명록

standard library (2)
copy(), deepcopy()

copy(Shallow and deep copy operations) copy — Shallow and deep copy operations — Python 3.7.4rc2 documentation copy — Shallow and deep copy operations Source code: Lib/copy.py Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes needed docs.python.org

Standard Library 2019. 7. 5. 17:54
dis

import dis dis.dis('a = [1, 2, 3, 4]') """ 0 LOAD_CONST 0 (1) 2 LOAD_CONST 1 (2) 4 LOAD_CONST 2 (3) 6 LOAD_CONST 3 (4) 8 BUILD_LIST 4 10 STORE_NAME 0 (a) 12 LOAD_CONST 4 (None) 14 RETURN_VALUE """ dis(Disassembler for Python bytecode) dis — Disassembler for Python bytecode — Python 3.7.4rc2 documentation dis — Disassembler for Python bytecode Source code: Lib/dis.py The dis module supports the a..

Standard Library 2019. 7. 5. 10:58
이전 1 다음
이전 다음
최근에 올라온 글
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바