Python Programming
  • Home
  • Intro
    • History & Background
    • Python Setup
  • Exercises
    • Chapter 5: Lists, Tuples, Sets
    • Chapter 6: Strings
    • Chapter 7: Dictionaries
    • Chapter 8: Control flow
    • Chapter 9: Functions
    • Chapter 14: Exceptions
    • Chapter 15: Classes
  • Exploring Data
    • NumPy & pandas
    • Inspecting data
    • Visualization
    • Plotting
  • Library System
  • Netflix Movie Analysis
  • References
    • QPB Part 1
    • QPB Part 2
    • QPB Part 3
    • QPB Part 4
# 1. 패키지 전체 import
import word_count  # 패키지 import
word_count.cleaning.clean_line("Hello, world!")

# 2. 패키지 안에 일부 모듈을 import
import word_count.cleaning as wcc
wcc.clean_line("Hello, world!")
'hello world'
'hello world'

This work © 2025 by Sungkyun Cho is licensed under CC BY-NC-SA 4.0