Luaで次の要件を持つ関数を作成するのに問題があります。
- 文字列
phone_numberと2桁country_codeを入力として受け取ります。 phone_numberの形式は{1|| ""}{country_code}{10または11桁の携帯電話番号}
10桁または11桁の携帯電話番号を出力する必要があります。
I / Oの例:
phone_number= "552234332344"、country_code= "55" => "2234332344"
phone_number= "15522343323443"、country_code= "55" => "22343323443"
ありがとう!