<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ``` import keyword import re url = "www.baidu.com" # 匹配包含www的字符串 re_compile = re.compile("www") # match從起始位置開始匹配,且只匹配一次,如果不沒找到,則返回None match = re_compile.match(url) # .span用來獲取匹配到的字符串所對應的下標位置 #re_compile.match(url).span() # match返回的是match對象,獲取值使用group print(match.group()) import re line = "Cats are smarter than dogs" # .* 表示任意匹配除換行符(\n、\r)之外的任何單個或多個字符 matchObj = re.match(r'(.*) are (.*) .*', line, re.M | re.I) if matchObj: print("matchObj.group() : ", matchObj.group()) print("matchObj.group(1) : ", matchObj.group(1)) print("matchObj.group(2) : ", matchObj.group(2)) else: print("No match!!") class switch_case(object): def case_to_function(self, case): fun_name = "case_fun_" + str(case) method = getattr(self, fun_name, self.case_fun_other) return method def case_fun_1(self, msg): print(msg) def case_fun_2(self, msg): print(msg) def case_fun_other(self, msg): print(msg) ``` ``` import keyword table = ["def","set","len","input","print"] new ="" temp ="" file = open("6183.py","r",encoding="utf-8") conent = file.read() #print(conent) file.close() for ch in conent: if ch.isalpha(): #i1 = i.upper() temp += ch #print(temp) else: print(temp) if(not keyword.iskeyword(temp)) and (temp not in table): temp = temp.upper() new += temp new += ch temp = '' #temp += i #print(new) newfile = open("6184.py","w",encoding="utf-8") newfile.write(new) newfile.close() ``` ``` def judge(n): m =set(n) if len(m) != len(n): return True else: return False line = input("請輸入一串列表值:") print(judge(line)) ``` ``` def JUDGE(N): M =set(N) if len(M) != len(N): return True else: return False LINE = input("請輸入一串列表值:") print(JUDGE(LINE)) ``` ``` def JUDGE(N): M =set(N) if len(M) != len(N): return True else: return False LINE = input("請輸入一串列表值:") print(JUDGE(LINE)) ``` ``` import keyword temp = 'return' a = not keyword.iskeyword(temp) #print(a) b = ['set'] c = temp not in b #print(c) print(temp.upper()) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看