[Tutor] Some Questions about Python
dyoo at hkn.eecs.berkeley.edu
Tue Aug 3 22:35:49 CEST 2004
On Tue, 3 Aug 2004, Ali Polatel wrote:
> 1.Can we delete or create a file with Python?
> 2.Can we rename a file with Python?
You may want to look at:
The functions os.unlink() and os.rename() should apply to your question.
You may also want to look at some tutorials at:
as these should cover how to do standard input-output in Python.
> 3.How can we restart a computer or shutdown a computer with python?
We actually had some discussion about this yesterday. Here's a link to
the relevant thread:
More information about the Tutor