wisdomlib Hectopat Katılım 18 Kasım 2021 Mesajlar 21 Yer Bursa Daha fazla Cinsiyet Erkek Meslek Öğrenci 20 Ocak 2023 #1 Python:Panoya kopyala url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" r = requests.get(url) if r.status_code == 200: file = open("calisan.txt","w") file.write (" Çalışıyor " url ) file.close() Hata: File "main.py", line 46 file.write (" Çalışıyor " url ) ^ SyntaxError: invalid syntax Kodda hatanın nerede olduğunu buldum ama nasıl çözeceğimi bulamadım yardım eder misiniz?
Python:Panoya kopyala url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" r = requests.get(url) if r.status_code == 200: file = open("calisan.txt","w") file.write (" Çalışıyor " url ) file.close() Hata: File "main.py", line 46 file.write (" Çalışıyor " url ) ^ SyntaxError: invalid syntax Kodda hatanın nerede olduğunu buldum ama nasıl çözeceğimi bulamadım yardım eder misiniz?
K kaan.w Megapat Katılım 25 Mayıs 2021 Mesajlar 2.424 Çözümler 156 Daha fazla Cinsiyet Erkek 20 Ocak 2023 #2 Python:Panoya kopyala file.write(f"Çalışıyor: {url}")
wisdomlib Hectopat Katılım 18 Kasım 2021 Mesajlar 21 Yer Bursa Daha fazla Cinsiyet Erkek Meslek Öğrenci 20 Ocak 2023 #3 kaan.w dedi: Python:Panoya kopyala file.write("Çalışıyor", url) Virgülü unuttunuz sanırım. Genişletmek için tıkla... Traceback (most recent call last): File "main.py", line 46, in <module> file.write (" Çalışıyor ", url ) TypeError: write() takes exactly one argument (2 given) Diyor.
kaan.w dedi: Python:Panoya kopyala file.write("Çalışıyor", url) Virgülü unuttunuz sanırım. Genişletmek için tıkla... Traceback (most recent call last): File "main.py", line 46, in <module> file.write (" Çalışıyor ", url ) TypeError: write() takes exactly one argument (2 given) Diyor.
K kaan.w Megapat Katılım 25 Mayıs 2021 Mesajlar 2.424 Çözümler 156 Daha fazla Cinsiyet Erkek 20 Ocak 2023 #4 wisdomlib dedi: Traceback (most recent call last): File "main.py", line 46, in <module> file.write (" Çalışıyor ", url ) TypeError: write() takes exactly one argument (2 given) Diyor. Genişletmek için tıkla... Güncelledim mesajı.
wisdomlib dedi: Traceback (most recent call last): File "main.py", line 46, in <module> file.write (" Çalışıyor ", url ) TypeError: write() takes exactly one argument (2 given) Diyor. Genişletmek için tıkla... Güncelledim mesajı.
wisdomlib Hectopat Katılım 18 Kasım 2021 Mesajlar 21 Yer Bursa Daha fazla Cinsiyet Erkek Meslek Öğrenci 20 Ocak 2023 #5 Traceback (most recent call last): File "main.py", line 46, in <module> file.write(f"Çalışıyor: {url}") io.UnsupportedOperation: not writable Diyor şimdide.
Traceback (most recent call last): File "main.py", line 46, in <module> file.write(f"Çalışıyor: {url}") io.UnsupportedOperation: not writable Diyor şimdide.
K kaan.w Megapat Katılım 25 Mayıs 2021 Mesajlar 2.424 Çözümler 156 Daha fazla Cinsiyet Erkek 20 Ocak 2023 #6 Python:Panoya kopyala with open("calisan.txt", "w") as f: url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" r = requests.get(url) if r.status_code == 200: f.write(f"Çalışıyor {url}") Böyle deneyin hocam.
Python:Panoya kopyala with open("calisan.txt", "w") as f: url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" r = requests.get(url) if r.status_code == 200: f.write(f"Çalışıyor {url}") Böyle deneyin hocam.
wisdomlib Hectopat Katılım 18 Kasım 2021 Mesajlar 21 Yer Bursa Daha fazla Cinsiyet Erkek Meslek Öğrenci 20 Ocak 2023 #7 File "main.py", line 39. url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" ^ IndentationError: expected an indented block. Böyle diyor.
File "main.py", line 39. url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" ^ IndentationError: expected an indented block. Böyle diyor.
K kaan.w Megapat Katılım 25 Mayıs 2021 Mesajlar 2.424 Çözümler 156 Daha fazla Cinsiyet Erkek 20 Ocak 2023 #8 wisdomlib dedi: File "main.py", line 39. url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" ^ IndentationError: expected an indented block. Böyle diyor. Genişletmek için tıkla... Düzgün kopyala yapıştır yaptığınızdan emin misiniz? Kodunuzun geri kalanını bilmediğimden bu kadar yardım edebiliyorum.
wisdomlib dedi: File "main.py", line 39. url = "https://discordapp.com/api/v6/entitlements/gift-codes/" + nitro + "?with_application=false&with_subscription_plan=true" ^ IndentationError: expected an indented block. Böyle diyor. Genişletmek için tıkla... Düzgün kopyala yapıştır yaptığınızdan emin misiniz? Kodunuzun geri kalanını bilmediğimden bu kadar yardım edebiliyorum.