Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 17th, 2018
75
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
import re
line_pat = re.compile('field1=(d+); field2=(d+); field3=(d+);')
with open(filepath, 'r') as f:
array = [[int(n) for n in line_pat.match(line).groups()] for line in f]
Add Comment
Please,
Sign In
to add comment
Public Pastes
vendor-birthday
PHP | 7 min ago | 4.30 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 23 min ago | 0.39 KB
Dragon style
LScript | 23 min ago | 16.48 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 24 min ago | 0.38 KB
data907
JSON | 28 min ago | 0.64 KB
archive-product.php
PHP | 36 min ago | 4.26 KB
Untitled
C++ | 36 min ago | 2.65 KB
Untitled
C++ | 38 min ago | 1.35 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!