Python: File
Buka File file_ = open('contoh.txt', 'w') file_.write('whatever') file_.close() Argumen usage: test.py -i -o Here is the following script to test.py − #!/usr/bin/python import sys, getopt def main(argv): inputfile = outputfile = try: opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="]) except getopt.GetoptError: print 'test.py -i -o '
| Penerbit | Taratsa |
|---|---|
| Tahun | 2015-11-30 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:25038169-6d85-5782-a8f1-5965cb6a9340 |
Tentang teks
131 kata · sekitar 1 menit baca · lebih panjang dari 17% buku di pustaka ini
Paling sering muncul
- file8
- inputfile6
- outputfile6
- python5
- getopt4
- opt4
- print4
- sys4
- arg3
- argv3
- main3
Khas buku ini
Sering di buku ini, jarang di buku lain.
- inputfile6
- outputfile6
- getopt4
- argv3
- opt4
- sys4
- python5
- arg3
- file8
- print4
- main3