8 Respostas
+ 6
Am văzut la cineva aici pe sololearn folosind ceva numit "brython". Nu sunt sigur dacă asta este ceea ce cauți, dar merită menționat.
+ 5
You can run your python script from JavaScript (impossible without js), everytime the button is clicked JS runs the python file and gets the output, to show it later in the website. But, this is not safe as your python script can be publicly accessed, and cause security issues.
The second and probably the best way is to use python as backend language, learn flask or django frameworks, and then create the website using them, this will allow tou to easily run python scripts directly, without having to use different languages.
+ 4
Look up Brython
+ 2
Mirielle🐶 [Inactive] he did not ask for alert, he said how to run python scripts in general, that have nothing to do with the web, for example making a calculus or manipulating a picture; this can be done without the need of javascript.
+ 1
KitKat [Chocolate] ▶ 🍫 am gasit zilele trecute cateva variante, printre care si brython, ma interesa mai mult pentru api-uri si diverse actiuni, si imi eta mai usor in python, dar ma uit de cateva zile si peste js... Mersi :)
+ 1
Aymane Boukrouh [Inactive] makes sens, everything I want is duable in js as well, but I only know python (beginner-intermediate), I touched js these days, it was easy to learn basics, but I like python more. I will go deeper and maybe I'll give a chance for flask/django too. Thanks!
+ 1
Good info :) nice for fullstack!
0
Mirielle🐶 [Inactive] thanks, i'm looking over js these days for my needs