就是想用markdown

2016-12-12  本文已影响0人  风无心

试试markdown

public function test() {
  $this->dsiplay();
}

不知道还有什么,哈哈哈哈
以后没事儿写点儿文字

Python

1.  input()函数
    name=input('please input your name: \n')
    print ('my name is',name)
2.  for x in [1,2,3]
3.  list(range(3))

如何判断一个对象是可迭代对象呢?方法是通过collections模块的Iterable类型判断:

>>> from collections import Iterable
>>> isinstance('abc', Iterable) # str是否可迭代
True
>>> isinstance([1,2,3], Iterable) # list是否可迭代
True
>>> isinstance(123, Iterable) # 整数是否可迭代
False
上一篇 下一篇

猜你喜欢

热点阅读