from PIL import Image # Open the uploaded image image_path = "/mnt/data/6cb3e678-6200-4bd8-9691-d5528b85a409.webp" image = Image.open(image_path) # Display the image to confirm it loaded correctly image.show()
Kayıtlar
- Bağlantıyı al
- X
- E-posta
- Diğer Uygulamalar
class NFT: def __init__(self, ad, sahip, fiyat): self.ad = ad self.sahip = sahip self.fiyat = fiyat def sat(self, alici): if alici.bakiye >= self.fiyat: alici.bakiye -= self.fiyat self.sahip.bakiye += self.fiyat self.sahip = alici print(f"{self.ad} adlı NFT, {self.fiyat} TL karşılığında satıldı.") else: print("Yetersiz bakiye.") class Kullanici: def __init__(self, ad, bakiye): self.ad = ad self.bakiye = bakiye def __str__(self): return self.ad # Kullanıcılar ve NFT'ler oluşturuldu alice = Kullanic...