123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="description" content="hello.py">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>hello.py | Riff</title>
- <link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
- <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
- <link rel="canonical" href="http://media.pagelibre.org/riff/site/listings/hello.py.html">
- <link rel="icon" href="../favicon.ico" sizes="16x16">
- <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]-->
- </head>
- <body>
- <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
-
- <!-- Menubar -->
-
- <div class="blog-masthead">
- <div class="container">
- <!-- This keeps the margins nice -->
- <nav class="blog-nav" role="navigation"><a href="../index.html" class="blog-nav-item">Accueil</a>
- <a href="../pages/about.html" class="blog-nav-item">About Riff</a>
- <a href="../rss.xml" class="blog-nav-item">RSS feed</a>
-
-
-
-
-
-
-
- </nav>
- </div>
- <!-- /.container -->
- </div>
- <!-- End of Menubar -->
-
- <div class="container" id="content" role="main">
- <div class="body-content">
- <div class="blog-header">
- <h1 class="blog-title">
- <a href="http://media.pagelibre.org/riff/site/">
-
- <span id="blog-title">Riff</span>
- </a>
- </h1>
- <p class="lead blog-description">Riff la radio rock</p>
-
- </div>
- <!--Body content-->
- <div class="row">
- <div class="col-sm-8 blog-main">
-
-
-
- <nav class="breadcrumbs"><ul class="breadcrumb">
- <li><a href=".">listings</a></li>
- <li>hello.py</li>
- </ul></nav><h1>hello.py
- <small><a href="hello.py">(Source)</a></small>
- </h1>
- <div class="code"><table class="codetable">
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-1"><code data-line-number=" 1"></code></a></td>
- <td class="code"><code><a name="listingshellopy-1"></a><span class="ch">#!/usr/bin/python</span>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-2"><code data-line-number=" 2"></code></a></td>
- <td class="code"><code><a name="listingshellopy-2"></a>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-3"><code data-line-number=" 3"></code></a></td>
- <td class="code"><code><a name="listingshellopy-3"></a><span class="kn">import</span> <span class="nn">sys</span>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-4"><code data-line-number=" 4"></code></a></td>
- <td class="code"><code><a name="listingshellopy-4"></a>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-5"><code data-line-number=" 5"></code></a></td>
- <td class="code"><code><a name="listingshellopy-5"></a>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-6"><code data-line-number=" 6"></code></a></td>
- <td class="code"><code><a name="listingshellopy-6"></a><span class="k">def</span> <span class="nf">hello</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s1">'world'</span><span class="p">):</span>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-7"><code data-line-number=" 7"></code></a></td>
- <td class="code"><code><a name="listingshellopy-7"></a> <span class="n">greeting</span> <span class="o">=</span> <span class="s2">"hello "</span> <span class="o">+</span> <span class="n">name</span>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-8"><code data-line-number=" 8"></code></a></td>
- <td class="code"><code><a name="listingshellopy-8"></a> <span class="nb">print</span><span class="p">(</span><span class="n">greeting</span><span class="p">)</span>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-9"><code data-line-number=" 9"></code></a></td>
- <td class="code"><code><a name="listingshellopy-9"></a>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-10"><code data-line-number="10"></code></a></td>
- <td class="code"><code><a name="listingshellopy-10"></a>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-11"><code data-line-number="11"></code></a></td>
- <td class="code"><code><a name="listingshellopy-11"></a><span class="k">if</span> <span class="vm">__name__</span> <span class="o">==</span> <span class="s2">"__main__"</span><span class="p">:</span>
- </code></td>
- </tr>
- <tr>
- <td class="linenos linenodiv"><a href="#listingshellopy-12"><code data-line-number="12"></code></a></td>
- <td class="code"><code><a name="listingshellopy-12"></a> <span class="n">hello</span><span class="p">(</span><span class="o">*</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>
- </code></td>
- </tr>
- </table></div>
-
- </div>
- <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
- <div class="sidebar-module sidebar-module-inset">
- <h4>About</h4>
- <div id="shoutcastdiv">
- <script type="text/javascript">
- refreshdiv();
- </script>
- </div>
- </div>
- <div class="sidebar-module">
- <h4>Links</h4>
- <ol class="list-unstyled">
- <li><a href="http://getbootstrap.com/examples/blog/">Bootstrap Blog Theme</a></li>
- <li><a href="https://getnikola.com/">Nikola</a></li>
- <li><a href="https://twitter.com/mdo">@mdo</a></li>
- <li><a href="https://twitter.com/Kwpolska">@Kwpolska</a></li>
- <li><a href="https://twitter.com/GetNikola">@GetNikola</a></li>
- </ol>
- </div>
-
-
- </div>
- <!--End of body content-->
- </div>
- </div>
- </div>
-
- <footer class="blog-footer" id="footer">
- Contents © 2023 <a href="mailto:contact@riff-radio.org">Riff</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
-
- </footer><script src="../assets/js/all-nocdn.js"></script><!-- fancy dates --><script>
- moment.locale("en");
- fancydates(0, "YYYY-MM-DD HH:mm");
- </script><!-- end fancy dates --><script>
- baguetteBox.run('div#content', {
- ignoreClass: 'islink',
- captions: function(element) {
- return element.getElementsByTagName('img')[0].alt;
- }});
- </script><script type="text/javascript" src="../refresh.js"></script>
- </body>
- </html>
|