试试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
网友评论