First commit of partial RosettaCode contents.
Pushing this for testing purposes. Lots of work still needed.
This commit is contained in:
commit
1e05ecd7ee
781 changed files with 9080 additions and 0 deletions
1
Task/Quine/Python/quine-2.py
Normal file
1
Task/Quine/Python/quine-2.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
x = 'x = {!r};print(x.format(x))';print(x.format(x))
|
||||
1
Task/Quine/Python/quine-3.py
Normal file
1
Task/Quine/Python/quine-3.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
import sys; sys.stdout.write(open(sys.argv[0]).read())
|
||||
1
Task/Quine/Python/quine-4.py
Normal file
1
Task/Quine/Python/quine-4.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
print(__file__[:-3])
|
||||
2
Task/Quine/Python/quine-5.py
Normal file
2
Task/Quine/Python/quine-5.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
$ python print\(__file__\[\:-3\]\).py
|
||||
print(__file__[:-3])
|
||||
2
Task/Quine/Python/quine.py
Normal file
2
Task/Quine/Python/quine.py
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
x = 'x = %r\nprint(x %% x)'
|
||||
print(x % x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue