You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
942 B
Plaintext
49 lines
942 B
Plaintext
4 years ago
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"quilt = open(\"my-fantastic-quilt\", 'w')\n",
|
||
|
"\n",
|
||
|
"for row in patches:\n",
|
||
|
"\n",
|
||
|
" for linenumber in range(74):\n",
|
||
|
"\n",
|
||
|
" line = ''\n",
|
||
|
"\n",
|
||
|
" for patch in row:\n",
|
||
|
"\n",
|
||
|
" line += open(patch).readlines()[linenumber]\n",
|
||
|
"\n",
|
||
|
" print(patch[line], nolineending, file=quilt)\n",
|
||
|
"\n",
|
||
|
" print(line)"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.7.3"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 4
|
||
|
}
|