Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: what's homogeneus items defined by list
Post: RE: what's homogeneus items defined by list

get it! Thanks for your time, Gribouillis.
frank0903 News and Discussions 5 2,388 Jun-25-2020, 11:11 AM
    Thread: what's homogeneus items defined by list
Post: RE: what's homogeneus items defined by list

Emmm,Thanks Gribouillis yep, the same precedure to all the objects is better, in other words, more faster probably,right? if handling inhomogeneous collections in a list, any side effect? how to defin...
frank0903 News and Discussions 5 2,388 Jun-25-2020, 10:44 AM
    Thread: what's homogeneus items defined by list
Post: what's homogeneus items defined by list

Quote:Lists are mutable sequences, typically used to store collections of homogeneous items what's homogeneous items or homogeneous data? as far as I know, a list object is able to store different ty...
frank0903 News and Discussions 5 2,388 Jun-25-2020, 10:16 AM
    Thread: Need to add hours min and seconds
Post: RE: Need to add hours min and seconds

import os too = r'C:/01/OUTCOME.txt' with open(too) as fo: sec = 0 for line in fo: res = line.split(',') ontu=res[2].strip() sd,st=ontu.split('.') sdh,s...
frank0903 General Coding Help 5 3,115 Jun-02-2020, 03:27 AM
    Thread: RE-greedy or non greedy about '?'
Post: RE: RE-greedy or non greedy about '?'

@buran,Thanks! understood totally. if anyone also have the same question, I hope this post will help to understand what's the real meaning of '?' summary: '?' quantifier matches between zero and one ...
frank0903 News and Discussions 5 2,540 Jun-01-2020, 10:00 AM
    Thread: RE-greedy or non greedy about '?'
Post: RE: RE-greedy or non greedy about '?'

import re RE_QUESTION_MARK = 'yd?' RE_ASTERISK = 'yd*' test_str1 = 'ydddddd' print(f'{test_str1} match result : {re.search(RE_ASTERISK, test_str1)}') print(f'{test_str1} match result : {re.search(RE_Q...
frank0903 News and Discussions 5 2,540 Jun-01-2020, 06:25 AM
    Thread: RE-greedy or non greedy about '?'
Post: RE-greedy or non greedy about '?'

Quote:The '*', '+', and '?' qualifiers are all greedy. from https://docs.python.org/3/library/re.html I think '?' qulifier is not greedy, the description is inaccurate, so anything else I don't know? ...
frank0903 News and Discussions 5 2,540 Jun-01-2020, 04:17 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020