Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 59a44c6

Browse files
updated
1 parent a5b854e commit 59a44c6

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

‎python3_helpful_coding_patterns_&_features.ipynb

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,6 +1318,45 @@
13181318
"# String Methods"
13191319
]
13201320
},
1321+
{
1322+
"cell_type": "markdown",
1323+
"metadata": {},
1324+
"source": [
1325+
"## Convert `\"string\"` to `['s', 't', 'r', 'i', 'n', 'g']`"
1326+
]
1327+
},
1328+
{
1329+
"cell_type": "code",
1330+
"execution_count": 1,
1331+
"metadata": {
1332+
"ExecuteTime": {
1333+
"end_time": "2018年06月24日T04:01:41.043183Z",
1334+
"start_time": "2018年06月24日T04:01:41.014724Z"
1335+
}
1336+
},
1337+
"outputs": [
1338+
{
1339+
"data": {
1340+
"text/plain": [
1341+
"['s', 't', 'r', 'i', 'n', 'g']"
1342+
]
1343+
},
1344+
"execution_count": 1,
1345+
"metadata": {},
1346+
"output_type": "execute_result"
1347+
}
1348+
],
1349+
"source": [
1350+
"list(\"string\")"
1351+
]
1352+
},
1353+
{
1354+
"cell_type": "markdown",
1355+
"metadata": {},
1356+
"source": [
1357+
"## The `string` Module"
1358+
]
1359+
},
13211360
{
13221361
"cell_type": "code",
13231362
"execution_count": 1,
@@ -1498,21 +1537,21 @@
14981537
],
14991538
"metadata": {
15001539
"kernelspec": {
1501-
"display_name": "Python 3",
1540+
"display_name": "Python 2",
15021541
"language": "python",
1503-
"name": "python3"
1542+
"name": "python2"
15041543
},
15051544
"language_info": {
15061545
"codemirror_mode": {
15071546
"name": "ipython",
1508-
"version": 3
1547+
"version": 2
15091548
},
15101549
"file_extension": ".py",
15111550
"mimetype": "text/x-python",
15121551
"name": "python",
15131552
"nbconvert_exporter": "python",
1514-
"pygments_lexer": "ipython3",
1515-
"version": "3.6.4"
1553+
"pygments_lexer": "ipython2",
1554+
"version": "2.7.14"
15161555
},
15171556
"toc": {
15181557
"nav_menu": {},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /