01 2018 档案
摘要:reference: http://rogerdudler.github.io/git guide/files/git_cheat_sheet.pdf
阅读全文
摘要:在用shell命令执行Python文件的时候,将原本的Python标准输出重定向到log文件,但是用tail命令查看log文件却没有看到输出,花了好几个小时都没有找到问题出在哪里,刚开始以为是代码写的有问题,最后才发现是Python的输出缓冲导致的。囧。 请看下面的例子: test.py 在命令行中
阅读全文
摘要:```
# 对象赋值
a = 'hello world'
b = a
print('a:',a,', b:',b)
# a: hello world , b: hello world
print(id(a)==id(b))
# True
a = 'Hello World'
print('a:',a,', b:',b)
# Hello World , b: hello world
print(id(...
阅读全文
浙公网安备 33010602011771号