Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 221 results for
splitlines
- Page 1
Saving the differences between 2 texts into another text string
Programming
Software Development
13 Years Ago
by romes87
… Uat Vat Wat Xat Yat Zat """.
splitlines
(1) text3 = """Aat Bait Caveat…Tat Uat Vet Watts Xat Yat Zat """.
splitlines
(1) text4 = """Aat Bait Caveat… Tat Uat Vet Watts Xat Yat Zat """.
splitlines
(1) d = difflib.Differ() result = list(d.compare…
c — Check Employee Info program
Programming
Software Development
10 Years Ago
by ragnacrap
…( ( ch = fgetc(f) ) != EOF ) printf("%c",ch);
SplitLines
fclose(f); }
SplitLines
(){ } /* Create time.txt Read Employee.txt Split lines (4…
Creating a GUI Wrapper for VLC Media Player in python/wxpython
Programming
3 Years Ago
by Reverend Jim
…config,'r') as file: for line in file.read().
splitlines
(): if DEBUG: print(line) exec(line) except:…config,'r') as file: for line in file.read().
splitlines
(): if DEBUG: print(line) exec(line) except:…
freevo uses python
Programming
Software Development
18 Years Ago
by shanenin
… "%s"' % v_video_file output = commands.getoutput(avitype_command) split = output.
splitlines
() for i in split: if i.startswith('ID_VIDEO_WIDTH='): width = int…
Get Last Modified Filename
Programming
Software Development
15 Years Ago
by Shadow14l
…(): files = os.popen (r"dir /od /b *.*").read ().
splitlines
() # dir /od /a-d /b # to avoid directories return files…
Poetic Python
Programming
Software Development
13 Years Ago
by TrustyTony
…((python_site, filename)) ## print filename # debug return urllib2.urlopen(filename).read().
splitlines
() class Python(): online_courses = _get_from_ysisoft('onlinecourses.txt') course_participants = _get_from_ysisoft('participants.txt…
regular expression almost there!
Programming
Software Development
13 Years Ago
by danholding
… = inFile.read() inFile.close() lineN = 0 for line in recordList.
splitlines
(): lineN +=1 if lineN ==0:print(lineN) else: lineN +=1…
Scrolling with an Object
Programming
Software Development
12 Years Ago
by izthrower
… simulation""" y = 5 for line in text.
splitlines
(): text = font.render(line, 1,THECOLORS["black"]) screen…
Creating lines in game
Programming
Software Development
12 Years Ago
by izthrower
… simulation""" y = 5 for line in text.
splitlines
(): text = font.render(line, 1,THECOLORS["black"]) screen…
expand on pyTony code in thread Collect data from different lines in file in Python
Programming
Software Development
12 Years Ago
by Cireyoretihw
… man2 jacjet man2 computer man1 car man1 shirt man2 jacket '''.
splitlines
() [/code] then added a steps to sort it and output…
I/O unexpected error
Programming
Software Development
12 Years Ago
by Lucaci Andrew
…(self, file): fh = open(file, 'r') line = open(file).read().
splitlines
() for i in range(0, len(line)): print i, "…
Max num in list file
Programming
Software Development
11 Years Ago
by june.pierre.311
…, "r") data = infile.read() for line in data.
splitlines
(): print(eval(line)) main()
Re: Max num in list file
Programming
Software Development
11 Years Ago
by june.pierre.311
…, "r") data = infile.read() for line in data.
splitlines
(): print(eval(line)) numlist(line) print("The maximum number…
How to Merge separation str
Programming
Software Development
11 Years Ago
by thanadaray
… with open('C:/test01.txt') as words: ws = words.read().
splitlines
() with open('C:/test02.txt') as file_modify4: for x in…
Re: How to Merge separation str
Programming
Software Development
11 Years Ago
by thanadaray
…? with open('C:/test01.txt') as words: ws = words.read().
splitlines
() with open('C:/test02.txt') as file_modify4: for x in…
Re: How to Merge separation str
Programming
Software Development
11 Years Ago
by Lucaci Andrew
Here you go laddie: with open('test01.txt') as words: ws = words.read().
splitlines
() wds=" ".join(i for i in ws[1:] if i != '') print (ws[0]+'\n '+wds)
Using scipy - spline / interp1d
Programming
Software Development
10 Years Ago
by DougArndt
… 14251 13281 12007 10525 8927 7281 5609 3756 1712'''.strip().
splitlines
() y_wavearray = np.array(wave,np.float64) y_wavearray[14] = y_wavearray[13…
memory error with huge data
Programming
Software Development
9 Years Ago
by loulou.skr
… in record.qualifiers[key]: i=1 for line in read_it.
splitlines
(): if line == val: myLine.append(i) break i=i+1…
With - Creating Read
Programming
Software Development
9 Years Ago
by flebber
…(' "') for item in record.split(',')] for record in text_file.
splitlines
()] # At this point look at input_table to find the record…
Re: With - Creating Read
Programming
Software Development
9 Years Ago
by flebber
…(' "') for item in record.split(',')] for record in text_file.
splitlines
()] # At this point look at input_table to find the record…
Python CPU Performance Analysis
Programming
Software Development
9 Years Ago
by cjohnweb
…} 405 2.176 0.005 2.176 0.005 {method '
splitlines
' of 'str' objects} 8866 0.335 0.000 0.335…
How to loop a python quiz
Programming
5 Years Ago
by Sondos _1
… def random_line(songs): lines =open("songs.txt").read().
splitlines
() return random.choice(lines) print(random_line("songs.txt"…
Further Adventures in Learning Python
Programming
Software Development
4 Years Ago
by Reverend Jim
…;) + ' "' + pattern + '"' return subprocess.check_output(cmd, shell=True).decode().
splitlines
() While I am on the subject of gotchas, here's…
how to convert to vb.net?
Programming
2 Years Ago
by zattat
…; try: with open(path, 'r') as file_in: lines = file_in.read().
splitlines
() except: print("File error or not found!") file_out…
how to convert python to vb.net
Programming
2 Years Ago
by zattat
…; try: with open(path, 'r') as file_in: lines = file_in.read().
splitlines
() except: print("File error or not found!") file_out…
Image File Tagging App in Python/wxPython
Programming
Software Development
2 Years Ago
by Reverend Jim
…(self.config,'r') as file: for line in file.read().
splitlines
(): if DEBUG: print(line) #Disable event handling during common tag…
Windows commenting tool in python/wxpython
Hardware and Software
Microsoft Windows
1 Year Ago
by Reverend Jim
…(self.config,'r') as file: for line in file.read().
splitlines
(): exec(line) except: pass def SaveConfig(self): """…
Re: Strings from file
Programming
Software Development
15 Years Ago
by VernonDozier
… using namespace std; //prototype of split function void
SplitLines
(char a, char b); int main() {… "; //function call to split lines into words
SplitLines
(a, b); } myfile.close(); return 0; } …//name of fucntion for splitting void
SplitLines
(char a[], char b[]) { vector<string>…
Re: Strings from file
Programming
Software Development
15 Years Ago
by JackDurden
… using namespace std; //prototype of split function void
SplitLines
(char a, char b); int main() {… "; //function call to split lines into words
SplitLines
(a, b); } myfile.close(); return 0; } …//name of fucntion for splitting void
SplitLines
(char a[], char b[]) { vector<string>…
Re: Strings from file
Programming
Software Development
15 Years Ago
by JackDurden
…using namespace std; //prototype of split function void
SplitLines
(ifstream& myfile, string& a); int…"; //function call to split lines into words
SplitLines
(myfile, a); } myfile.close(); return 0; …} //name of fucntion for splitting void
SplitLines
(ifstream& myfile, string& a) { …
1
2
3
4
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC