diff options
Diffstat (limited to 'pypers/pep318/pro1.txt')
-rwxr-xr-x | pypers/pep318/pro1.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pypers/pep318/pro1.txt b/pypers/pep318/pro1.txt new file mode 100755 index 0000000..c75b12a --- /dev/null +++ b/pypers/pep318/pro1.txt @@ -0,0 +1,10 @@ +#<pro1.py> +import sys +f=sys.stdout +a='ciao' +def prn(): + print >> f, a +#</pro1.py> +>>> import pro1 +>>> pro1.prn() +ciao |