>>> import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't
>>> import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't
Alternative to bash (awk command) with python网页链接
with open('oneptdm.dat') as f:
line = next(f).split()
for i in range(len(line)):
print('{0}\t{1}'.format(i+1, line[i]))
try:
line = next(f).split()
except StopIteration:
Python真是动态得要命,也就是实际语义的范围非常大,子集很多,用抽象解释做抽象可以做很久,可选的性质可以有很多也可以很新颖。Abstract Interpretation x Python估计在SAS18,19就会冒出来,毕竟AI x C已经没有多少可选的余地了。猜测的同时,搜了一下,NASA Formal Methods18 已经有AI x Python了