1import{_ as e}from"./plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c as t,e as n}from"./app-BSCYujwr.js";const i={},r=n(`<h1 id="python" tabindex="-1"><a class="header-anchor" href="#python"><span>python</span></a></h1><h2 id="i-need-a-random-string-including-digits" tabindex="-1"><a class="header-anchor" href="#i-need-a-random-string-including-digits"><span>I need a random string(including digits)</span></a></h2><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>python <span class="token parameter variable">-c</span> <span class="token string">"import random;import string;print(''.join(random.sample(string.ascii_letters + string.digits, 8)))"</span> 2</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h2 id="create-a-virtual-env" tabindex="-1"><a class="header-anchor" href="#create-a-virtual-env"><span>create a virtual env</span></a></h2><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>python3 <span class="token parameter variable">-m</span> venv virtualenv 3</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><h2 id="install-requirements" tabindex="-1"><a class="header-anchor" href="#install-requirements"><span>install requirements</span></a></h2><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>pip3 <span class="token function">install</span> <span class="token parameter variable">-i</span> http://mirrors.aliyun.com/pypi/simple <span class="token parameter variable">-r</span> requirements.txt --trusted-host mirrors.aliyun.com 4</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div>`,7),s=[r];function l(o,d){return a(),t("div",null,s)}const m=e(i,[["render",l],["__file","python.html.vue"]]),h=JSON.parse(`{"path":"/articles/commands/python.html","title":"python","lang":"en-US","frontmatter":{"description":"python I need a random string(including digits) create a virtual env install requirements ","head":[["meta",{"property":"og:url","content":"https://mister-hope.github.io/articles/commands/python.html"}],["meta",{"property":"og:site_name","content":"GeekCity"}],["meta",{"property":"og:title","content":"python"}],["meta",{"property":"og:description","content":"python I need a random string(including digits) create a virtual env install requirements "}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"en-US"}],["meta",{"property":"og:updated_time","content":"2025-10-09T08:52:15.000Z"}],["meta",{"property":"article:author","content":"ben.wangz"}],["meta",{"property":"article:modified_time","content":"2025-10-09T08:52:15.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"python\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2025-10-09T08:52:15.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"ben.wangz\\",\\"url\\":\\"/intro/me.md\\"}]}"]]},"headers":[{"level":2,"title":"I need a random string(including digits)","slug":"i-need-a-random-string-including-digits","link":"#i-need-a-random-string-including-digits","children":[]},{"level":2,"title":"create a virtual env","slug":"create-a-virtual-env","link":"#create-a-virtual-env","children":[]},{"level":2,"title":"install requirements","slug":"install-requirements","link":"#install-requirements","children":[]}],"git":{"createdTime":1759999935000,"updatedTime":1759999935000,"contributors":[{"name":"ben.wangz","email":"[email protected]","commits":1}]},"readingTime":{"minutes":0.14,"words":43},"filePathRelative":"articles/commands/python.md","localizedDate":"October 9, 2025","excerpt":"\\n<h2>I need a random string(including digits)</h2>\\n<div class=\\"language-bash\\" data-ext=\\"sh\\" data-title=\\"sh\\"><pre class=\\"language-bash\\"><code>python <span class=\\"token parameter variable\\">-c</span> <span class=\\"token string\\">\\"import random;import string;print(''.join(random.sample(string.ascii_letters + string.digits, 8)))\\"</span>\\n</code></pre></div>","autoDesc":true}`);export{m as comp,h as data};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.