| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
'accretion bedding加积层理accretion ridge古海滩沙脊, 填积沙岭;外展滩脊accretion ripple mark加积波痕accretion topography加积地形accretion unit加积层;加积单位accretion zone加积层带,生长带accrued assets应计资产;应收未收资产accrued depreciation应计折旧accrued expenses预提费用accrued income应收未收收益accrued liabilities应计负债accrued profit应计利润时accrued royalty已产出油气的矿区使用费acct. (account) 账户;会计师acct. (accountant) 账户;会计师Acct.code (account code)账号Acct. No (account number)账号Acct. tit. (account titte)会计科目, 会计名称accumulate积累,聚集accumulated amortization 累计摊销accumulated angle总角,合力角accumulated deficit累计亏空,累计赤字accumulated depletion累 计储量耗减accumulated depreciation累 计折旧accumulated dose累计剂量,总剂量accumulated error累计误差accumulated footage累计进尺accumulated gas- oil ratio累计气油比出accumulated growth层积生长, 堆积生长accumulated island堆积岛水accumulated profit累计利润accumulate error累计误差开论accumulation累积, 累计;堆积(作用), (油气)聚集  accumulational聚集的;堆积的  gnilquoa 28accumulational platform堆积台地accumulation area聚集区,堆积区,聚集带accumulation curve累计曲线accumulation cycle堆积旋回accumulation factor累加因子accumulation horizon堆积层,聚积层accumulation point聚点accumulation rate堆积速率accumulation relief堆积地形accumulation season累积季节accumulation strain累积应变accumulation system储能系统accumulation terrace堆积阶地电accumulation time preset value累计时间预置值accumulation variogram累积方差图accumulation zone聚集带,堆积带accumulative累积的accumulative crystallization 聚集结晶accumulative deposit堆积沉积(物) accumulative effect  集聚效应  ' 
 
请问各位大神上面的字符串如何分为两个list: 
list1 = [accretion bedding,accretion ridge,accretion ripple mark.....] 
list2 = [加积层理,古海滩沙脊, 填积沙岭;外展滩脊,加积波痕.....]
- import re
 
 - str1 = "accretion bedding加积层理accretion ridge古海滩沙脊, 填积沙岭;外展滩脊accretion ripple mark加积波痕accretion topography加积地形accretion unit加积层;加积单位accretion zone加积层带,生长带accrued assets应计资产;应收未收资产accrued depreciation应计折旧accrued expenses预提费用accrued income应收未收收益accrued liabilities应计负债accrued profit应计利润时accrued royalty已产出油气的矿区使用费acct. (account) 账户;会计师acct. (accountant) 账户;会计师Acct.code (account code)账号Acct. No (account number)账号Acct. tit. (account titte)会计科目, 会计名称accumulate积累,聚集accumulated amortization 累计摊销accumulated angle总角,合力角accumulated deficit累计亏空,累计赤字accumulated depletion累 计储量耗减accumulated depreciation累 计折旧accumulated dose累计剂量,总剂量accumulated error累计误差accumulated footage累计进尺accumulated gas- oil ratio累计气油比出accumulated growth层积生长, 堆积生长accumulated island堆积岛水accumulated profit累计利润accumulate error累计误差开论accumulation累积, 累计;堆积(作用), (油气)聚集  accumulational聚集的;堆积的  gnilquoa 28accumulational platform堆积台地accumulation area聚集区,堆积区,聚集带accumulation curve累计曲线accumulation cycle堆积旋回accumulation factor累加因子accumulation horizon堆积层,聚积层accumulation point聚点accumulation rate堆积速率accumulation relief堆积地形accumulation season累积季节accumulation strain累积应变accumulation system储能系统accumulation terrace堆积阶地电accumulation time preset value累计时间预置值accumulation variogram累积方差图accumulation zone聚集带,堆积带accumulative累积的accumulative crystallization 聚集结晶accumulative deposit堆积沉积(物) accumulative effect  集聚效应"
 
 - list1 = re.findall(r'([\u4e00-\u9fa5]+[^a-zA-z]*[\u4e00-\u9fa5]+[^a-zA-z]*)', str1)
 
 - str2 = re.sub(r'([\u4e00-\u9fa5]+[^a-zA-z]*[\u4e00-\u9fa5]+[^a-zA-z]*)', '-',str1)
 
 - list2 = str2.split('-')
 
 - print(list1)
 
 - print(list2)
 
  复制代码 
 
 
 
 |   
 
 
 
 |