Pinterest • The world’s catalogue of ideas

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

block device driver 2016_12_30_04_18_35 diff --git a/manual4.py b/manual4.py index 3f84a05..6ddcbbe 100644 --- a/manual4.py b/manual4.py @@ -4111 4112 @@ while line: #alpha [label = "This is 1st node."]; lbl = re.split(r"@@" line) - if len(lbl) == 3: - print "\"" lbl[0] "\"" "->" "\"" lbl[1] "\"" "[dir = both label = " "\"" lbl[2] "\"" " color=red penwidth=5];" if len(lbl) == 3: print "edge[penwidth=15]" print "\"" lbl[0] "\"" "->" "\"" lbl[1] "\"" "[dir = both…

stack machine (bottom-up) 2016_09_15_07_44_38 diff --git a/manual4.py b/manual4.py index a609ed4..70f62ef 100644 --- a/manual4.py b/manual4.py @@ -2126 21214 @@ while line: str = "\"" tmp[0] "\"" "[color=palegreen penwidth=16 style = \"boldfilled\"]" array.append(str) elif tmp[1] == "PGR": str = "\"" tmp[0] "\"" "[color=palegoldenrod penwidth=5]" array.append(str) elif tmp[1] == "PGRNR"…

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("\""…

nfb 2016_12_11_04_56_54 diff --git a/manual4.py b/manual4.py index 70f62ef..3f84a05 100644 --- a/manual4.py b/manual4.py @@ -56812 56810 @@ while line: elif tmp[3] == "D": str = "\"" tmp[0] "\"" "->" "\"" tmp[1] "\"" "[label = \"" tmp[2] "\"]" "[color=darkgreen penwidth=3]" ";" - elif tmp[3] == "LC": - str = "\"" tmp[0] "\"" "->" "\"" tmp[1] "\"" "[label = \"" tmp[2] "\"]" "[color=lemonchiffon penwidth=3]" ";" - - elif…

stack machine (bottom-up) 2016_08_11_09_37_56 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…

DigDev Direct’s current operations specialize in customer acquisition and customer retention programs for national brands through interactive marketing and electronic and mobile data campaigns. Our array of digital products and services consists of email marketing, mobile marketing, email appending, customer profiling and analytics and mobile application development

123
5

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("\""…