Pinterest • The world’s catalogue of ideas

Python List Examples – Insert, Append, Length, Index, Remove, Pop

stack machine (bottom-up) 2016_10_07_09_24_08 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py b/manual4r.py @@ -57 58 @@ print "digraph {" #print "layout = fdp" print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];" argvs = sys.argv argc = len(argvs) @@ -216 228 @@ while line: line = line.rstrip() line = line.replace("%" "") line = line.replace("\""…

stack machine (bottom-up)  2016_10_07_07_48_24 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py  b/manual4r.py @@ -57 58 @@ print "digraph {"  #print "layout = fdp"    print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];"    argvs = sys.argv    argc = len(argvs)  @@ -216 228 @@ while line:   line = line.rstrip()          line = line.replace("%" "")          line = line.replace("\""…

stack machine (bottom-up) 2016_10_07_07_48_24 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py b/manual4r.py @@ -57 58 @@ print "digraph {" #print "layout = fdp" print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];" argvs = sys.argv argc = len(argvs) @@ -216 228 @@ while line: line = line.rstrip() line = line.replace("%" "") line = line.replace("\""…

stack machine (bottom-up) 2016_10_12_10_35_21 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py b/manual4r.py @@ -57 58 @@ print "digraph {" #print "layout = fdp" print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];" argvs = sys.argv argc = len(argvs) @@ -216 228 @@ while line: line = line.rstrip() line = line.replace("%" "") line = line.replace("\""…

stack machine (bottom-up) 2016_10_06_09_35_30 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py b/manual4r.py @@ -57 58 @@ print "digraph {" #print "layout = fdp" print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];" argvs = sys.argv argc = len(argvs) @@ -216 228 @@ while line: line = line.rstrip() line = line.replace("%" "") line = line.replace("\""…

stack machine (bottom-up) 2016_10_12_03_47_52 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py b/manual4r.py @@ -57 58 @@ print "digraph {" #print "layout = fdp" print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];" argvs = sys.argv argc = len(argvs) @@ -216 228 @@ while line: line = line.rstrip() line = line.replace("%" "") line = line.replace("\""…

stack machine (bottom-up) 2016_10_11_03_22_07 diff --git a/manual4r.py b/manual4r.py index 6d26b78..bb3bdbb 100644 --- a/manual4r.py b/manual4r.py @@ -57 58 @@ print "digraph {" #print "layout = fdp" print "node[fontsize=10 shape=box]" -print "graph [rankdir = LR];" #print "graph [size=\"22\"];" print "graph [rankdir = TB];" argvs = sys.argv argc = len(argvs) @@ -216 228 @@ while line: line = line.rstrip() line = line.replace("%" "") line = line.replace("\""…

stack machine (bottom-up) 2016_08_13_11_28_13 diff --git a/gdb1.sh b/gdb1.sh index e6d7eba..cb69f0c 100755 --- a/gdb1.sh b/gdb1.sh @@ -13 13 @@ python gdb1.py gdb.txt > tmpdot -dot -Tpng tmpdot -o 1.png -\cp 1.png /var/www/html/codes/ \ No newline at end of file dot -Tpng tmpdot -o 1-gdb.png \cp 1-gdb.png /var/www/html/codes/ \ No newline at end of file diff --git a/gdb2.sh b/gdb2.sh index 0f0f26a..f5a41a5 100755 --- a/gdb2.sh b/gdb2.sh @@ -14 14 @@ python gdb2.py gdb.txt > tmpdot -dot…