首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >未捕获SyntaxError:用于购物商店的自定义js文件中存在意外的标记')‘

未捕获SyntaxError:用于购物商店的自定义js文件中存在意外的标记')‘
EN

Stack Overflow用户
提问于 2021-04-06 08:23:27
回答 1查看 77关注 0票数 0

我添加了一个定制的.js文件到一个购物商店。尽管尝试了很多次,我似乎还是找不到导致这个错误的原因。请检查下面的代码,让我知道我需要在哪里更正代码来修复错误。纠正VS代码指出的其他问题无助于修复错误。我仔细查找了每段代码/函数的开始和结束大括号。

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
// Listener for variant:changed event in product page.
document.addEventListener('variant:changed', function(event) {
  var variant = event.detail.variant; // Gives access to variant details
  var fulfillment_info_str = "";
  var free_shipping_applicable = (variant.price >= (sku_free_shipping_threshold[variant.id] * 100)) ? true : false;

  // In the Variant Fulfillment Info, add the Back Order information or the Fulfillment Info
  if (sku_backorder_info[ variant.id ] != "") {
    fulfillment_info_str = sku_backorder_info[ variant.id ];
  } else {
    fulfillment_info_str = "In stock!  " + sku_fulfillment_info;
    if (!free_shipping_applicable) {
      fulfillment_info_str += ". Purchase $" + sku_free_shipping_threshold[variant.id] + " " +vendor_name+ " products for FREE shipping";
    }
  }
  document.querySelector(".variant-fulfillment-info").innerHTML = fulfillment_info_str;
});


//  var vendor_name= $(".ProductMeta__Vendor").text();

//$('h2').hide();
//$('body').append("vendor name = " + vendor_name);
//$('body').append(jQuery.fn.jquery);

var loadScript = function(url, callback){
    var script = document.createElement("script")
    script.type = "text/javascript";
 
    if (script.readyState){  //IE
        script.onreadystatechange = function(){
            if (script.readyState == "loaded" ||
                    script.readyState == "complete"){
                script.onreadystatechange = null;
                callback();
            }
        };
    } else {  //Others
        script.onload = function(){
            callback();
        };
    }
 
    script.src = url;
    document.getElementsByTagName("head")[0].appendChild(script);
};

if ((typeof jQuery === 'undefined') || (parseFloat(jQuery.fn.jquery) < 1.7)) {
  loadScript('//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', function(){
    jQuery191 = jQuery.noConflict(true);
    myAppJavaScript(jQuery191);
  });
} else {
  myAppJavaScript(jQuery);
}

var myAppJavaScript = function($){
 // $('h2').hide();
//$('body').append(jQuery.fn.jquery);
 // $('body').append('<p>Your app is using jQuery version '+$.fn.jquery+'</p>');
};

// change the menu icon from click to mouseover
var myAppJavaScript = function($){

  $(".Icon-Wrapper").mouseover(function(){
  $(this).trigger("click");
  });
  
// the little circle and down-arrown on main home page - CHARCOAL and BLACK 3/23/2020 AB
//  $(".Slideshow__ScrollButton").css("background-color","#6A6A6A")   
  $(".flickity-viewport").after('<div style="padding-left:10px;text-align:center;color:#000000;font-weight:bold;">MORE &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BELOW</div><br />')

// Electric Mirror backlit mirrors - changes
  if ((document.title.indexOf("Electric Mirror")>-1 && document.location.href.indexOf("backlit")>0) || document.location.href.indexOf("tv")>0){  
    // correct the shipping time
    $(".variant-fulfillment-info").html('<span style="font-size:1.1em">Shipped <span style="font-weight:bold;color:#0000FF">FREE</span> in about 1 week, direct from the factory.</span>');
    // get "Backlit Size" to appear as "Size"
    var sizetext= $(".ProductForm__OptionName").html();
    $(".ProductForm__OptionName").html(sizetext.replace("Backlit ",""));
  }
  
// Phrase appears beneath the header logo - commented
//$(".Header__LogoImage--transparent, .Header__LogoImage--primary").after('<br /><div style="display:none" id="free49">FREE SHIPPING over $49</div>');
//  $( window ).scroll(function() {
//    $("#free49").show();
//  });  

//  *******************  copy of PMM custom.js file  ******************************************************************

function get_pmm_shipping_text() {
    var v_text = "",page_title,meta_string,pmm_vendor_code,pmm_price,pmm_sku,
    meta,meta_string,
    exceptions="KE OM TB JV E_M EL",
    notFree="BB,LC,TB,JA,MD",
    ship_info="",cost="",free="",p=0,q=0,weeks="",
    little_box= '<img src="https://cdn.shopify.com/s/files/1/0048/2675/9279/t/9/assets/free-shipping.png" class="altattr" alt="Free Shipping">',
    little_plane= '<img src="https://images.reflectperfection.com/5f89061a4c6ab.png" class="altattr" alt="Air Express">';
    
    //  get the vendor, sku, and price
    meta_string = JSON.stringify(meta);
    meta_string = meta_string.replace(/[\/{\}\[\]\"]/g, '');
    
    p = meta_string.indexOf("sku");
    pmm_vendor_code = meta_string.substr(p+4,2);
    q = meta_string.substr(p+4).indexOf(",");
    pmm_sku = meta_string.substr(p+4,q);
    pmm_sku = pmm_sku.replace(/[\-P\-]/,"");
    p = meta_string.indexOf("price");
    q = meta_string.substr(p+6).indexOf(",");
    pmm_price = meta_string.substr(p+6,q);
            
    // NOTE:  pmm_vendor_code, pmm_sku and  pmm_price are pre-existing variables
    console.log("Vendor Code=" + pmm_vendor_code + ", SKU=" + pmm_sku + "Price=" + pmm_price);

    notFree.indexOf(pmm_vendor_code)>-1 ? free="" : free = "FREE,"; // if prefix not in "notFree" variable, shipping is FREE regardless of price.
    pmm_price > 4900 ? free="FREE," : free="" ; // everything over $49 ships free.
    // thresh>"" && netprice<thresh ? free="" : ''; // below shipping threshold nullifies free shipping  (thresh and netprice are not defined)
    if (pmm_vendor_code == "EM" || pmm_vendor_code == "E2" ){ // handles Electric Mirror mirror types
        page_title = $(".ProductMeta__Title").text();
        
        if (page_title.indexOf("TV")>-1){
            weeks = "4 to 6";
        }
        if (page_title.indexOf("Smart")>-1){
            weeks = "6 to 8";
        }
        if (page_title.indexOf("Backlit")>-1){
            weeks = "1 to 2";
        }
        if (page_title.indexOf("Shower")>-1 || page_title.indexOf("Cabinet")>-1){
            weeks = "2";
        }
        if (page_title.indexOf("Wardrobe")>-1){
            weeks = "3 to 4";
        }
        if (weeks > "" ){
            document.getElementsByClassName("available")[0].innerText=""; // eliminates IN STOCK from page
            pmm_vendor_code = "E_M"; 
        }
    }
    
    switch(pmm_vendor_code){  // exceptions items to vendor Free or Not-Free
        case "BB" : pmm_sku == "BB01" ? free = "FREE," : '' ;
        case "JA" : pmm_price > "32" ? free = "FREE," : '';
        case "MD" : pmm_price > "32" ? free = "FREE," : '';
        case "LC" : pmm_price > "57" ? free = "FREE," : '';
    }

    // REMEMBER free (lower case) is a variable
    cost = "In stock! &nbsp;Shipped "+free+" usually on the ";
    switch (pmm_vendor_code){
        case "AA" : ship_info=cost+"3<sup>rd</sup> to 5<sup>th</sup> " ; break; // Aamsco
        case "AB" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> " ; break; // Amba
        case "AG" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> " ; break; // alkaglam
        case "AY" : ship_info=cost+"2<sup>nd</sup> to 4<sup>th</sup> "; break; // ayurderm
        case "BB" : ship_info=cost+"next " ; break; // NOT free -butterbabes
        case "CL" : ship_info=cost+"2<sup>nd</sup> to 4<sup>th</sup> " ; break; // clear mirror
        case "CB" : ship_info=cost+"same or next "; break; // cannaBon
        case "CP" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> " ; break;  // contrapac
        case "CY" : ship_info=cost+"same or next " ; break;  // cyberderm
        case "DB" : ship_info=cost+"same or next " ; break; // Dear by Renee
        case "DN" : ship_info=cost+"next " ; break;  // dia naturals
        case "E3" : ship_info=cost+"3<sup>rd</sup> to 6<sup>th</sup> " ; break; // electric mirror Cordova brand
        case "EM" : ship_info=cost+"4<sup>th</sup> to 6<sup>th</sup> " ; break; // electric mirror
        case "FS" : ship_info=cost+"2<sup>nd</sup> " ; break; // foster and lake
        case "GH" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> " ; break; // stan pardente ghd
        case "HR" : ship_info=cost+"same or next "; break; // hair restoration
        case "JA" : ship_info=cost+"same or next " ; break;  // JAVA skin care
        case "JD" : ship_info=cost+"3<sup>rd</sup> to 5<sup>th</sup> ";break; // Jerdon
        case "KY" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> "; break;  // kimball & young / aptations
        case "LC" : ship_info=cost+"same or next "; break;  // l.a. christine
        case "LD" : ship_info=cost+"2<sup>nd</sup> "; break; // lumidesign
        case "LU" : ship_info=cost+"same or next "; break;  // luce skincare
        case "LW" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> " ; break; // stemulation
        case "MD" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> "; break; // MDSolarSciences
        case "MH" : ship_info=cost+"2<sup>nd</sup> to 3<sup>rd</sup> " ; break; // more hair naturally
        case "MY" : ship_info=cost+"2<sup>nd</sup> to 3<sup>rd</sup> " ; break; // marcus york
        case "RE" : ship_info=cost+"same or next "; break; // replete skincare
        case "NO" : ship_info=cost+"same or next "; break; // gentleman's foundry
        case "SK" : ship_info=cost+"next " ; break; // skin triks
        case "SQ" : ship_info=cost+"same or next " ; break; // skintifique
        case "SY" : ship_info=cost+"2<sup>nd</sup> or 3<sup>rd</sup>" ; break; // shunly
        case "TB" : ship_info=cost+"2<sup>nd</sup> or 3<sup>rd</sup>" ; break; // to bee products
        case "TH" : ship_info=cost+"1<sup>st</sup> or 2<sup>nd</sup> " ; break; // thalgo
        case "UC" : ship_info=cost+"2<sup>nd</sup> to 4<sup>th</sup>";break; // upper canada (danielle creations)
        case "VT" : ship_info=cost+"next " ; break;  // vintage traditions
        case "xx" : ship_info=cost+"same or next"; break; // pmm inventory product
    }
    console.log("Ship Info=" + ship_info);
    

    if (exceptions.indexOf(pmm_vendor_code)==-1){ // if vendor is NOT in the exceptions string cases above are used
            if (free=="FREE," ){ // display the little truck 
                v_text = little_box + ' &nbsp;<strong>' + ship_info + ' business day.</strong>';
            } else { // no little truck
                v_text = '<strong> ' + ship_info +' business day.</strong>';
            }
    } else { // following vendors must be included in the exceptions string on or near  line 4
        switch (pmm_vendor_code){
            case "EL" : v_text = '<span style="color:#A300FC;font-size:1.1em;font-weight:bold" >'+little_plane+' &nbsp;Formulated in the EU,  and Shipped FREE, directly to your door via Royal Mail International from Kent, England in 7-8 days.</span>'; break;
            case "E_M" : v_text = '<span style="color:#A300FC;font-size:1.1em;font-weight:bold" >'+little_box+' &nbsp;Custom made for you in the USA, and Shipped FREE, directly to your door via <span style="color:#4D148C;font-weight:bold">Fed</span><span style="color:#FF6200;font-weight:bold">Ex</span> or by Truck, in '+weeks+ ' weeks, directly from the Washington State factory.</span>'; break; 
            case "JV" : v_text = '<span style="color:#A300FC;font-size:1.1em;font-weight:bold" >'+little_plane+' &nbsp;Made in France, Shipped FREE, directly to you via <span style="color:#4D148C;font-weight:bold">Fed</span><span style="color:#FF6200;font-weight:bold">Ex</span> International Express</span> in about 7-10 days, directly from the Mexico warehouse.</span>'; break; // JVD
            case "KE" : v_text = '<span style="color:#A300FC;font-size:1.1em;font-weight:bold" >'+little_plane+' &nbsp;Shipped FREE, directly to you via <span style="color:#4D148C;font-weight:bold">Fed</span><span style="color:#FF6200;font-weight:bold">Ex</span> International Express</span> in about 21 days, directly from Germany.</span>'; break; // Keuco
            case "OM" : v_text = '<span style="font-size:1.1em;font-weight:bold">'+little_box+' 8 oz. size ships FREE.<br />Also shipped FREE: &nbsp;2 oz. size purchased together with 8 oz. size - or - 3 or more 2 oz. size.<br /><br />Shipment is from Canada after 1 business day. &nbsp;Time in transit to locations in the continental US is 3 to 5 business days.</span>'; break;  // oil me north
            case "TB" : v_text = '<span style="font-size:1.1em;font-weight:bold">Ships FREE when purchased together with ToBee 3-Pack</span>'; break;  // to bee products
        }
    }
    console.log("V Text=" + v_text);
    return v_text;
}); // end of get_pmm_shipping_text()

// ---------------------------------  miroir brot vacation --------------------------------------------------------

    /*if(docloch.indexOf("miroir-brot")>-1){
            var brot_start = new Date(2019,06,28),
                brot_end = new Date(2019,07,30);
            if (today_date => brot_start && today_date <= brot_end){
                $(".product-name").after('<div id="brot_vacation" style="text-align: left;font-size: large; color: #9900ff;">Miroir Brot will be CLOSED for summer vacation from August 5th through August 30th.<br /><br /><strong>Order by <span style="color: #ff0000;">Thursday, July 25th</span> for shipment before vacation closing.</strong><br /><br />Orders placed after July 25th will be shipped after August 30th.</div>');
            }
    } */

$(document).ready(function(v_text) {
    var page_title = $(".ProductMeta__Title").text();
    
    // Commented out as the Tab is not opening by default.
    // $("#tab-label-product.info.description").click();
    setTimeout(function() {             
        document.querySelector(".variant-fulfillment-info").innerHTML = v_text;
        //$(".variant_fulfillment-info").text(get_pmm_shipping_text()); }, 750); // end of setTimeout
    // make the word CLOSEOUT red on product pages
    if (page_title.indexOf("CLOSEOUT!")>-1 || page_title.indexOf("OPEN BOX!")>-1){
        page_title = page_title.replace("CLOSEOUT!",'<span style="color:#FF0000">CLOSEOUT!</span>');
        page_title = page_title.replace("OPEN BOX!",'<span style="color:#FF0000">OPEN BOX!</span>');
        $(".ProductMeta__Title").html(page_title);
    }

    // Normally add the bind to a parent which will be stable.
    
    // commented out following that deals with Klarna AB 10/22/2020
 /*   $("#product-options-wrapper select").change(function() {

      // setTimeout() used to ensure a time interval between Magento populating the span
      // and jQuery reading the span.
      setTimeout(function() {
        // Get the value of the span element
        var price = $(".price-box .normal-price .price-wrapper span.price").html();

        // Clean and Convert the value to cents
        var priceCents = parseInt(parseFloat(price.replace(/[^\d.]/g,'')) * 100);

        // If value is different from existing Klarna product placement value, update it.
        // and then call Klarna with refresh-event to refresh the placement.
        var oldPurchaseAmt = $(".product-add-form klarna-placement").attr("data-purchase-amount");
        if (priceCents != oldPurchaseAmt) {
          $(".product-add-form klarna-placement").attr("data-purchase-amount", priceCents);

          // Trigger event to refresh
          window.KlarnaOnsiteService = window.KlarnaOnsiteService || [];
          window.KlarnaOnsiteService.push({ eventName: 'refresh-placements' });
        }
      }, 200);
    }); */
}); // end of document.ready

//  *******************  end of copy of PMM custom.js file  ******************************************************************

  
} // end of jQuery
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-06 08:45:37

意外的)PMM custom.js中,也就是get_pmm_shipping_text()结束的地方。

此外,同一文件中缺少}),就在// end of document.ready之前

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66965089

复制
相关文章
python pandas分组统计
利用panda便捷的对日志分组统计: #!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2017/11/14 下午6:27 # @Author : wz # @Email : 277215243@qq.com # @File : testpanda.py # @web : https://www.bthlt.com import pandas ''' 2017-10-30 20:21:06.626735|27024|5
葫芦
2019/04/17
1.2K0
如何理解和使用Python中的列表
Python有6个序列的内置类型,但最常见的是列表和元组。今天我们就来讲讲列表。
小土豆Yuki
2020/06/15
7K0
python 连续值分组统计
python 连续值分组统计
Java架构师必看
2021/08/10
1.4K0
python 连续值分组统计
python中列表的使用
情景:列表应该是数据处理时经常使用到一种数据类型,可以有序、组合的操作值存储,是很实用的函数。。。这是最后一篇整理的笔记,发现排版很浪费时间,也得不到交流,还是用类似onenote写笔记的方式快。
py3study
2020/01/14
5.3K0
Java8使用Stream流实现List列表的查询、统计、排序、分组
Java8提供了Stream(流)处理集合的关键抽象概念,它可以对集合进行的操作,可以执行非常复杂的查找、过滤和映射数据等操作。Stream API 借助于同样新出现的Lambda表达式,极大的提高编程效率和程序可读性。
全栈程序员站长
2022/11/08
10.8K0
Java8使用Stream流实现List列表的查询、统计、排序、分组
解决嵌套布局中列表条目显示不全问题
自定义View重写onMeasure方法 @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { //此处是代码的关键 //MeasureSpec.AT_MOST的意思就是wrap_content //Integer.MAX_VALUE >> 2 是使用最大值的意思,也就表示的无边界模式 //Integer.MAX_VALUE >
longzeqiu
2019/08/15
1.7K0
python中如何import不同层级的模块 python中如何import不同层级的模块
main.py为主文件,model.py是我们要引入的文件,则直接import model或from model import *即可。
尾尾部落
2018/09/04
4.8K0
Python 列表元素分组,比如 [1,
# 生成一个1到20的列表 a=[x for x in range(1,21)] # 把a列表切片,并赋值给b列表,x为0到20且步长为3的列表,在这里具体为[0,3,6,9,12,15,18] # 把x带入,b列表为[a[0:0+3],a[3:3+3]……[a[18:18+3] b=[a[x:x+3] for x in range(0,20,3)] print(a) print(b) 输出为 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 1
py3study
2020/01/19
1K0
使用Python按另一个列表对子列表进行分组
在 Python 中,我们可以使用各种方法按另一个列表对子列表进行分组,例如使用字典和使用 itertools.groupby() 函数,使用嵌套列表推导。在分析大型数据集和数据分类时,按另一个列表对子列表进行分组非常有用。它还用于文本分析和自然语言处理。在本文中,我们将探讨在 Python 中按另一个列表对子列表进行分组的不同方法,并了解它们的实现。
很酷的站长
2023/08/11
4530
使用Python按另一个列表对子列表进行分组
14.不同条目的listview
分类界面 整个项目的逻辑就是这样的 CategoryInfo public class CategoryInfo { private String title; private String u
六月的雨
2018/05/14
6210
7.5.1 创建条目列表示例
7.5.1 创建条目列表示例 #include <QApplication> #include <QTabWidget> #include <QLineEdit> #include <QSpinBox> #include <QFormLayout> #include <QListWidget> #include <QLabel> int main(int argc, char *argv[]) { QApplication a(argc, argv); /*创建QListWidget*/ QLis
DS小龙哥
2022/01/12
6590
7.5.1 创建条目列表示例
列表元素分组
有这样一种场景,有三个列表a、b、c。我们想要把每一个列表中的第一个元素取出来分为一组,第二元素取出来分为一组、第三个元素取出来分为一组,以此类推。该怎么做呢?你可以自己想一想,再来看下面的实现过程。
TalkPython
2019/05/24
1.1K0
Python3中列表的使用
列表操作常用操作包含以下方法: 1、list.append(obj):在列表末尾添加新的对象 2、list.count(obj):统计某个元素在列表中出现的次数 3、list.extend(seq):在列表末尾一次性追加另一个序列中的多个值(用新列表扩展原来的列表) 4、list.index(obj):从列表中找出某个值第一个匹配项的索引位置 5、list.insert(index, obj):将对象插入列表 6、list.pop(obj=list[-1]):移除列表中的一个元素(默认最后一个元素),并且返回该元素的值 7、list.remove(obj):移除列表中某个值的第一个匹配项 8、list.reverse():反向列表中元素 9、list.sort([func]):对原列表进行排序
py3study
2020/01/03
2.7K0
Python中的groupby分组
这个是groupby的最常见操作,根据某一列的内容分为不同的维度进行拆解,将同一维度的再进行聚合
全栈程序员站长
2022/09/01
2K0
Python中的groupby分组
【Python】列表 List ① ( 数据容器简介 | 列表 List 定义语法 | 列表中存储类型相同的元素 | 列表中存储类型不同的元素 | 列表嵌套 )
Python 中的 数据容器 数据类型 可以 存放多个数据 , 每个数据都称为 元素 , 容器 的 元素 类型可以是任意类型 ;
韩曙亮
2023/10/11
2820
【Python】列表 List ① ( 数据容器简介 | 列表 List 定义语法 | 列表中存储类型相同的元素 | 列表中存储类型不同的元素 | 列表嵌套 )
Mysql——分组统计
 💟💟前言 🥇作者简介:友友们大家好,我是你们的小王同学😗😗 🥈个人主页:小王同学🚗 🥉 系列专栏:牛客刷题专栏📖 📑 推荐一款非常火的面试、刷题神器👉牛客刷题 今天给大家带来的系列是:Mysql——分组统计 mysql 刷题 系列 牛客网 牛客网里面有非常多得面试真题 包含 java sql c++等多种语言实现  select语句🎪 使用group   by子句对列进行分组【先创建测试表】 select column1 column2 column3 .....from  ta
王同学要努力
2022/12/21
5.2K0
Mysql——分组统计
Python中如何进行数据分组
数据分组 根据数据分析对象的特征,按照一定的数值指标,把数据分析对象划分为不同的区间进行研究,以揭示其内在联系和规律性。 cut 函数: cut(series,bins,right=True,labels=NULL) ① series  需要分组的数据 ② bins    分组的划分数组 ③ right   分组的时候,右边是否闭合,默认为闭合True ④ labels  分组的自定义标签,可以不自定义 import pandas data = pandas.read_csv( 'D:\\PDA\
Erin
2018/01/09
3.2K0
python 中如何查找列表长度
In this article, we will be unveiling techniques to find the length of a Python list. Finding the length actually means fetching the count of data elements in an iterable.
用户8418197
2022/01/09
2.7K0
awk分组求和分组统计次数
如果第一列相同,则根据第一列来分组,分别打印第二列和第三列的和 如果第一列相同,则根据第一列来分组,分别打印第二列和第三列的和 分组求和 image.png 以第一列 为变量名  第一列为变量,将相同第一列的第二列数据进行累加打印出和. image.png image.png 以第一列和第二列为变量名, 将相同第一列、第二列的第三列数据进行累加打印出和 image.png image.png
用户8639654
2021/08/10
1.9K0
点击加载更多

相似问题

统计字典中的不同条目

12

统计python列表字典中最流行的条目

39

如何在python的字典列表中合并属于同一key的条目?

20

如何统计分组列表中的金额总和?

122

如何统计csv文件python中的条目和频率?

11
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文