#๐ when i open py file it closes instant
225 messages ยท Page 1 of 1 (latest)
@undone falcon
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
hey
soo
how do you run the python file?
no worries
its not self evident that you have to use your terminal to run a python file
do you have windows terminal installed ?
do you know how to open and use it?
wdym terminal
it means you cant double click it with your mouse
command prompt?
thats almost the same thing
i have command prompt
command prompt is very old...
better to use something new
but it will work from command prompt
you can, but you dont know how to keep it open
thats why you need to run it from the terminal
okay how
This is the expected behaviour. If you double click a py file, it closes when it finishes, and that includes if the code has an error
do you have the app called windows terminal ?
nope
what version of windows do you have?
windows 10 is dead, but lets see if we can get you a new terminal and a new shell
open windows store
ye
and in the search box, seartch for windows terminal
that is one of two programs you need
?
yes thats the one
ok second
on windows 11 it is installed by default
now search for an app called powershell
in windows store
ok
windows has two powershells
windows powershell and powershell
microsoft is really bad at naming things
done
like they have two popular editors
now
have it
i want you to open a new terminal, use the pluss button and open the black powershell shell
you can use windows terminal settings to set this as the default shell
idk what im doing ngl
screenshot works here
no worries
i open vs?
open windows terminal
you can make a new tab with the pluss symbol, next to it you have an arrow down
yup
while windows powershell has a blue one
dekstop
cd Desktop
this command changes directory to the desktop
yup
dir to see all your files on the desktop
one of them should be your python file
disc_spider.py it should be named
ye
ye
how did you get this file?
friend
share the github page so i can see what you need to install to run it
and you dont find that suspicious? sounds like a bad friend is tricking you
type disc_spider.py and show me the top of the file
as a large screenshot
type .\disc_spider.py
i forgot myself, you can use tab button to complete the name
type shows the content of the file on screen
you can just scroll up and see
what?
leme send u
this is not something that works
really
yeah, you cant get the ip of a discord user
and the code here does not work either
and the code also has requirements, so you cant just run it
always be honest about where you get something
and nothing there was true
that would be illegal
really
yes, its part of cyber crime, and it is illegal everywhere, and most places its also a fellony
what looks like a small thing is in fact really big because it has huge ramifications
oh
you cannot attack only a small website, you will also attack all the small websites on that server, and take down multiple things, the entire network and everything in between
can u tell me smth fun
that i can have fun about
py thing
that i also can learn
how to open?
well... there is a book called automate the boring stuff with python that not only teaches you python, but gives you the tools to do a lot of fun things for yourself
i use it to automate my house
i have built my own smart house
and it all starts out with small things
and to be honest, boring things! ๐
and now im automating something in a game i play beacuse i find something in that game to be so tedious and boring
lol
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
you find the link to it here
can u still teach me how to open file
what file do you need to open?
open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)```
Open *file* and return a corresponding [file object](https://docs.python.org/3/glossary.html#term-file-object). If the file cannot be opened, an [`OSError`](https://docs.python.org/3/library/exceptions.html#OSError) is raised. See [Reading and Writing Files](https://docs.python.org/3/tutorial/inputoutput.html#tut-files) for more examples of how to use this function.
*file* is a [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object) giving the pathname (absolute or relative to the current working directory) of the file to be opened or an integer file descriptor of the file to be wrapped. (If a file descriptor is given, it is closed when the returned I/O object is closed unless *closefd* is set to `False`.)
here is the general answer, but it might not help you much
ofc i can, but how to open a file is also its own chapter in the book i shared above
not the first chapter, because you would need some basics first
okayy
N-ANOM is A TOOL TO SEND SMS ANONYMOUSLY ! By @Nabil-Official - Nabil-Official/N-ANOM
help with his
this is a mallicious tool that does not do what it say
bruh
you just joined?
ye
yup
you should
i be honest
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
i didnt kenw
knew*
on god bro
im new too
i dont even know
how to open
py file
but if you open this file, it will break something, steal something or worse
dont go looking for something like this online
broo
i hear you say broo...
can u teach me at least
how to make a py code
in visual studio
and open it after
as exe?
like text
in terminal
ike
KENTI
1 - TYPE 1 FOR
2 - TYPE 2 FOR
check the book i posted
okay
:warning: The owner of this post is no longer in the server.
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.