Jump to content

Take notes on the command line: Difference between revisions

m
→‎{{header|Python}}: Consistent quote style
(add task to aarch assembly for raspberry pi)
m (→‎{{header|Python}}: Consistent quote style)
Line 2,861:
if len(sys.argv) == 1:
try:
with open('"notes.txt'", '"r'") as f:
shutil.copyfileobj(f, sys.stdout)
except IOError:
pass
else:
with open('"notes.txt'", '"a'") as f:
f.write(datetime.datetime.now().isoformat() + '"\n'")
f.write("\t%s\n" % ' '.join(sys.argv[1:]))</syntaxhighlight>
 
140

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.