for-else

    11Hitze

    6Antwort

    Python eine praktische Sprache-Funktion "für-else" (ähnlich "während-else") genannt hat, die wie folgt aussieht: for obj in my_list: if obj == target: break else: # note: this else is atta

    0Hitze

    1Antwort

    mit habe ich eine Funktion def static_nat_fwsm_check(mapped_to_real_address_pairs,FWSM_ACLs): amended_static_nat_acl=[] for acl_line in FWSM_ACLs: for i,j in mapped_to_real_address_pair