Skip to content

Commit

Permalink
docs: update algorithm/ast.literal_eval.md
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkwon02 committed Jan 29, 2022
1 parent 017a3d6 commit e26d5f7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Algorithm/ast.literal_eval.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ast.literal_eval

### 👉 배열 형태의 문자열을 배열로 변환해주는 함수

```python
import ast

str = "[1, 2, 3]"
arr = ast.literal_eval(str)

for num in arr:
print(num)
```

0 comments on commit e26d5f7

Please sign in to comment.