We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf91f9b commit e325c0eCopy full SHA for e325c0e
cyaron/utils.py
@@ -0,0 +1,12 @@
1
+def ati(array):
2
+ """ati(array) -> list
3
+ Convert all the elements in the array and return them in a list.
4
+ """
5
+ return [int(i) for i in array]
6
+
7
+def list_like(data):
8
+ """list_like(data) -> bool
9
+ Judge whether the object data is like a list or a tuple.
10
+ object data -> the data to judge
11
12
+ return isinstance(data, tuple) or isinstance(data, list)
0 commit comments