snipt

Ctrl+h for KB shortcuts

Python

test

1
2
3
4
5
#!/usr/bin/env python

import sys

print sys.argv[1]
https://snipt.net/embed/c28f591028d422f78def8c4a7dd311a0/
/raw/c28f591028d422f78def8c4a7dd311a0/
c28f591028d422f78def8c4a7dd311a0
python
Python
5
2019-07-14T15:01:11
True
False
False
/api/public/snipt/47815/
test-175
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="ch">#!/usr/bin/env python</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="kn">import</span> <span class="nn">sys</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="k">print</span> <span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> </span></pre></div> </td></tr></table>
tmp