🔃I/O İşlemleri | IPython

IPython I/O İşlemleri

📚 Zip İşlemleri

!tar -xvzf # Zipi çıkartma

📂 IPython Drive Erişimi

from google.colab import drive
drive.mount('/content/gdrive')

💫 Veri Aktarımı İşlemleri

from google.colab import files

with open('example.txt', 'w') as f:
  f.write('some content')

files.download('example.txt')

📸 Bilgisayar Kamerasına Erişme

from IPython.display import Image
try:
filename = take_photo()
print('Saved to {}'.format(filename))

# Show the image which was just taken.
display(Image(filename))
except Exception as err:
# Errors will be thrown if the user does not have a webcam or if they do not
# grant the page permission to access it.
print(str(err))

Last updated

© 2024 ~ Yunus Emre Ak ~ yEmreAk