+ 5
Why the error in the code?
¿Por qué el error en el código? https://code.sololearn.com/cwa31T8t5F8M/?ref=app
15 Réponses
+ 4
Firsly you defined an url without assigne it to a variable
>>> url("https://images.app.goo.gl/YLWg8o2c192DNyck7", "Bonephoto.jpg")
And next the way you did in next line it will only if there is a picture named "Bonephoto.jpg" in the directory in witch your code run.
>>> img = ImageTk.PhotoImage(Image.open("Bonephoto.jpg"))
Try this :
>>> imgUrl = url("https://images.app.goo.gl/YLWg8o2c192DNyck7", "Bonephoto.jpg")
>>> img = ImageTk.PhotoImage(Image.open(imgUrl))
+ 2
Use the print function, Carlos Santiago Reina
+ 2
I know, Ubah Chinedu
+ 1
The error continue.
+ 1
★«Caleb Guerra Ortega»★ try to provide a valid image url
+ 1
I run it in Pydroid
+ 1
Me too, Carlos Santiago Reina
Also, I need your answer from the question, please, help me.
+ 1
Claro que hay un error, Carlos Santiago Reina.
Te olvidaste de la n después del \.
Ubah Chinedu
Run it in Pydroid
0
estas intentando renderizar un HTML como imagen
https://code.sololearn.com/c45L0j9qA6ga/?ref=app
0
Some python code runners can not support tkinder model try in other runner
0
Carlos Santiago Reina You must ask it as a separate question. Don't comment in other discussions
That said, here's what I would do:
for i in range(1,10):
print(f'{i}.')
- 1
Yo probe 2 opciones y ls segunda salio bien:
1: print (1. \2. \3 etc......)
Pero me dio error asi q tuve q hacerla:
2: print ("""1.
2.
3.
4.
5.
6.
7.
8.
9.""")
Proba esta ultima, used number 2
- 1
Si si gracias. Bueno igual mande la n pero me sirvio wl segundo xon las comillas
- 2
I NEED YOUR HELP FOR THIS:
I NEED OUPUT THAT:
1.
2.
3.
4.
5.
6.
7.
8.
9.