User Tools

Site Tools


python_examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
python_examples [2019/03/08 08:02] g00r00python_examples [2019/03/09 08:06] g00r00
Line 129: Line 129:
  
 <file python mcihelp.mpy> <file python mcihelp.mpy>
- 
 import mystic_bbs as bbs; import mystic_bbs as bbs;
  
Line 165: Line 164:
 # List files in the user's current file base # List files in the user's current file base
  
-from time import * 
 from mystic_bbs import * from mystic_bbs import *
  
Line 199: Line 197:
  
 # Seek to the first file in the list and loop while a file is found calling # Seek to the first file in the list and loop while a file is found calling
-# next after each message so the next one will be loaded.  Seek should be+# next after each file so the next one will be loaded.  Seek should always be
 # called before cycling through the list # called before cycling through the list
  
Line 217: Line 215:
  writeln("")  writeln("")
  writeln("|09File: |11" + fileinfo["filename"])  writeln("|09File: |11" + fileinfo["filename"])
- writeln("|09Date: " + str(fileinfo["date"]))+ writeln("|09Date: " + datestr(dated2u(fileinfo["date"]), "NNN DD YYYY HH:II:SS"))
  writeln("Size: " + str(fileinfo["size"]))  writeln("Size: " + str(fileinfo["size"]))
  writeln("DLs : " + str(fileinfo["dls"]))  writeln("DLs : " + str(fileinfo["dls"]))
python_examples.txt · Last modified: 2019/03/09 21:40 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki