-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
2160 lines (738 loc) · 84.3 KB
/
index.html
File metadata and controls
2160 lines (738 loc) · 84.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html class="theme-next mist use-motion" lang="zh-CN">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />
<link href="/css/main.css?v=6.2.0" rel="stylesheet" type="text/css" />
<link rel="apple-touch-icon" sizes="180x180" href="/images/d_favicon.png?v=6.2.0">
<link rel="icon" type="image/png" sizes="32x32" href="/images/d_favicon_medium.png?v=6.2.0">
<link rel="icon" type="image/png" sizes="16x16" href="/images/d_favicon_small.png?v=6.2.0">
<link rel="mask-icon" href="/images/d_favicon_medium.png?v=6.2.0" color="#222">
<script type="text/javascript" id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Mist',
version: '6.2.0',
sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
fancybox: false,
fastclick: false,
lazyload: false,
tabs: true,
motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
}
};
</script>
<meta property="og:type" content="website">
<meta property="og:title" content="Jason Ding的博客">
<meta property="og:url" content="http://jasonding.top/index.html">
<meta property="og:site_name" content="Jason Ding的博客">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Jason Ding的博客">
<link rel="alternate" href="/atom.xml" title="Jason Ding的博客" type="application/atom+xml" />
<link rel="canonical" href="http://jasonding.top/"/>
<script type="text/javascript" id="page.configurations">
CONFIG.page = {
sidebar: "",
};
</script>
<title>Jason Ding的博客</title>
<noscript>
<style type="text/css">
.use-motion .motion-element,
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-title { opacity: initial; }
.use-motion .logo,
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion {
.logo-line-before i { left: initial; }
.logo-line-after i { right: initial; }
}
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">
<div class="container sidebar-position-left
page-home">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">Jason Ding的博客</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle"></p>
</div>
<div class="site-nav-toggle">
<button aria-label="切换导航栏">
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home menu-item-active">
<a href="/" rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br />首页</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section">
<i class="menu-item-icon fa fa-fw fa-th"></i> <br />分类</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br />归档</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<section id="posts" class="posts-expand">
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://jasonding.top/2018/05/12/personal/【个人】人际关系中的自我反省/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Jason Ding">
<meta itemprop="description" content="">
<meta itemprop="image" content="/images/lark.jpg">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Jason Ding的博客">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2018/05/12/personal/【个人】人际关系中的自我反省/" itemprop="url">
【个人】人际关系中的自我反省
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2018-05-12 07:48:48 / 修改时间:08:16:24" itemprop="dateCreated datePublished" datetime="2018-05-12T07:48:48+08:00">2018-05-12</time>
</span>
<span class="post-category" >
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/personal/" itemprop="url" rel="index"><span itemprop="name">personal</span></a></span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<script src=/js/crypto-js.js></script><script>
function doDecrypt(pwd, onError) {
console.log("in doDecrypt");
var txt = document.getElementById("enc_content").innerHTML;
var plantext;
try {
var bytes = CryptoJS.AES.decrypt(txt, pwd);
plaintext = bytes.toString(CryptoJS.enc.Utf8);
} catch(err) {
if(onError) {onError(err);}
return;
}
document.getElementById("enc_content").innerHTML = plaintext;
document.getElementById("enc_content").style.display = "block";
document.getElementById("enc_passwd").style.display = "none";
}
</script>
<div id="enc_content" style="display:none">U2FsdGVkX19nCVz8VCImwgghYmWI+na6N7Lk21gPbepTKDN+KOaU8HDPonARDG4m0PRddhvLsB6p0VkxW4dX2SIDs+O/C9ZOP1mkpFg9KX088cXni449pKgqQqCyYWwoAd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DxqSiDPw93Rzz+57MgJnT5MLe7E3ql44u2v2IZIEThQcNtnfGq1JqgOMXb5Cx5aoxCV9cb3seVlG9AUR3T/v3vF5ipli822iofzOVa36bNlnU9CUYHNuT3jQSdxryufspUJ+VBpt+0ZfYeMM5L9aJGgFds3Y/6cfiSkkTLaZmzFFJnoIxGo1yVYNwA=</div><div id="enc_passwd"><input type="text" style=" border-radius: 5px; border-style: groove; height: 30px; width: 50%; cursor: auto; font-size: 102%; color: currentColor; outline: none; text-overflow: initial; padding-left: 5px;"> <input type="submit" value="解密" onclick="decrypt()" style=" width: 58px; height: 34px; border-radius: 5px; background-color: white; border-style: solid; color: currentColor; "> <div id="enc_error" style=" display: inline-block; color: #d84527; font: large; "></div> <script> var onError = function(error) { $("#enc_error")[0].innerHTML = "password error!"; }; function decrypt() { var passwd = $("#enc_passwd input")[0].value; console.log(passwd); doDecrypt(passwd, onError); } </script></div>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://jasonding.top/2018/05/01/【架构】使用端口适配器模式构建灵活架构/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Jason Ding">
<meta itemprop="description" content="">
<meta itemprop="image" content="/images/lark.jpg">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Jason Ding的博客">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2018/05/01/【架构】使用端口适配器模式构建灵活架构/" itemprop="url">
【架构】使用端口适配器模式构建灵活架构
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2018-05-01 12:23:21 / 修改时间:20:59:13" itemprop="dateCreated datePublished" datetime="2018-05-01T12:23:21+08:00">2018-05-01</time>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="介绍"><a href="#介绍" class="headerlink" title="介绍"></a>介绍</h2><h2 id="架构特点"><a href="#架构特点" class="headerlink" title="架构特点"></a>架构特点</h2><p>###<br>适配器依赖具体的工具和具体的端口,而业务逻辑只依赖端口定义的接口。<br>从架构角度来说,依赖关系的方向是由内部控制的。端口是用来适应应用核心的需求的,而不是模仿与外部通信的API接口。这种控制反转,</p>
<h2 id="参考资料:"><a href="#参考资料:" class="headerlink" title="参考资料:"></a>参考资料:</h2><ul>
<li><a href="https://herbertograca.com/2017/11/16/explicit-architecture-01-ddd-hexagonal-onion-clean-cqrs-how-i-put-it-all-together/#fundamental-blocks-of-the-system" target="_blank" rel="external">DDD, Hexagonal, Onion, Clean, CQRS, … How I put it all together</a></li>
<li><a href="https://dzone.com/articles/hello-hexagonal-architecture-1" target="_blank" rel="external">Hello, Hexagonal Architecture</a></li>
</ul>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://jasonding.top/2018/04/26/machine_learning/【Data】使用RFM模型进行客户细分/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Jason Ding">
<meta itemprop="description" content="">
<meta itemprop="image" content="/images/lark.jpg">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Jason Ding的博客">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2018/04/26/machine_learning/【Data】使用RFM模型进行客户细分/" itemprop="url">
【Data】使用RFM模型进行客户细分
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2018-04-26 10:33:58" itemprop="dateCreated datePublished" datetime="2018-04-26T10:33:58+08:00">2018-04-26</time>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-calendar-check-o"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2018-05-12 12:03:53" itemprop="dateModified" datetime="2018-05-12T12:03:53+08:00">2018-05-12</time>
</span>
<span class="post-category" >
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/machine-learning/" itemprop="url" rel="index"><span itemprop="name">machine learning</span></a></span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h2 id="背景"><a href="#背景" class="headerlink" title="背景"></a>背景</h2><p>如果是涉及到数据挖掘和分析工作,常常希望于有一套成熟系统的分析建模方法。<br>这个时代,不缺现成方法,缺的是从理论映射到实际解决方案的经验。<br>在客户精细化分析中,我了解到了RFM模型,在同别人的交流中,我看到别人通过RFM模型的分析思路,对<strong>特征工程的业务建模</strong>有一套非常流程化的思路。这让我非常感兴趣。</p>
<p>下面转入正题。<br>根据美国数据库营销研究所ArthurHughes的研究,客户数据库中有三个神奇的要素,这三个要素构成了数据分析较好的指标:</p>
<ul>
<li><code>最近一次消费(Recency)</code></li>
<li><code>消费频率(Frequency)</code></li>
<li><code>消费金额(Monetary)</code><br>RFM分析原多用于传统营销、零售业等领域,适用于拥有多种消费品或快速消费品的行业,只要任何有数据记录的消费都可以被用于分析。那么对于电子商务网站来说,网站数据库中记录的详细的交易信息,同样可以运用RFM分析模型进行数据分析,尤其对于那些已经建立起客户关系管理(CRM)系统的网站来说,其分析的结果将更具意义。</li>
</ul>
<h2 id="介绍"><a href="#介绍" class="headerlink" title="介绍"></a>介绍</h2><p>RFM模型是衡量客户价值和客户创利能力的重要工具和手段。RFM分析模型主要由三个指标组成,下面对这三个指标的定义和作用做下简单解释:</p>
<blockquote>
<ul>
<li><strong>最近一次消费(Recency)</strong>意指用户上一次购买的时间,理论上,上一次消费时间越近的顾客应该是比较好的顾客,对提供即时的商品或是服务也最有可能会有反应。因为最近一次消费指标定义的是一个时间段,并且与当前时间相关,因此是一直在变动的。最近一次消费对营销来说是一个重要指标,涉及吸引客户,保持客户,并赢得客户的忠诚度。<br>如果显示上一次购买很近的客户,(消费为1个月)人数如增加,则表示该公司是个稳健成长的公司;反之则是迈向不健全之路的征兆。<br>要吸引一个几个月前才上门的顾客购买,比吸引一个一年多以前来过的顾客要容易得多。</li>
<li><strong>消费频率(Frequency)</strong>是顾客在一定时间段内的消费次数。最常购买的消费者,忠诚度也就较高,增加顾客购买的次数意味着从竞争对手处偷取市场占有率,由别人的手中赚取营业额。<br>如果相信品牌及商店忠诚度的话,最常购买的消费者,忠诚度也就最高。增加顾客购买的次数意味着从竞争对手处偷取市场占有率,由别人的手中赚取营业额。</li>
<li><strong>消费金额(Monetary)</strong>是对电子商务网站产能的最直接的衡量指标,也可以验证“帕雷托法则”(Pareto’sLaw)——公司80%的收入来自20%的顾客。</li>
</ul>
</blockquote>
<p><img src="/images/machine_learning/rfm_model.jpeg" alt=""></p>
<h2 id="数据分析"><a href="#数据分析" class="headerlink" title="数据分析"></a>数据分析</h2><p>在从数据库中提取相关数据之前,首先需要确定数据的时间跨度,根据网站销售的物品的差异,确定合适的时间跨度。如果经营的是快速消费品,如日用品,可以确定时间跨度为一个季度或者一个月;如果销售的产品更替的时间相对久些,如电子产品,可以确定时间跨度为一年、半年或者一个季度。在确定时间跨度之后就可以提取相应时间区间内的数据,其中:</p>
<blockquote>
<ul>
<li>最近一次消费(Recency),取出来的数据是一个时间点,需要由当前时间点-最近一次消费时间点来作为该度量的值,注意单位的选择和统一,无论以小时、天为单位;</li>
<li>消费频率(Frequency),这个指标可以直接在数据库中COUNT用户的消费次数得到;</li>
<li>消费金额(Monetary),可以将每位客户的所有消费的金额相加(SUM)求得。</li>
</ul>
</blockquote>
<p>获取三个指标的数据以后,需要计算每个指标数据的均值,分别以AVG(R)、AVG(F)、AVG(M)来表示,最后通过将每位客户的三个指标与均值进行比较,可以将客户细分为8类:<br><img src="/images/machine_learning/rfm_analysis.png" alt=""></p>
<h2 id="缺陷不足"><a href="#缺陷不足" class="headerlink" title="缺陷不足"></a>缺陷不足</h2><p>RFM分析只能分析有交易行为的用户,而对访问过网站但未消费的用户由于指标的限制无法进行分析,这样就无法发现潜在的客户。所以在分析电子商务网站的用户时,由于网站数据的丰富性——不仅拥有交易数据,而且可以收集到用户的浏览访问数据,可以扩展到更广阔的角度去观察用户。</p>
<h2 id="参考资料"><a href="#参考资料" class="headerlink" title="参考资料"></a>参考资料</h2><p><a href="http://36kr.com/p/5058947.html" target="_blank" rel="external">如何了解用户分层做到精细化运营?谈谈RFM模型的实际应用</a><br><a href="http://36kr.com/p/5075741.html?from=related" target="_blank" rel="external">老客户召回策略——RFM模型及应用</a></p>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://jasonding.top/2018/02/14/book/【书单】生活常识看财务报表/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Jason Ding">
<meta itemprop="description" content="">
<meta itemprop="image" content="/images/lark.jpg">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Jason Ding的博客">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2018/02/14/book/【书单】生活常识看财务报表/" itemprop="url">
【书单】生活常识看财务报表
</a>
</h1>
<div class="post-meta">
<span class="post-time">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2018-02-14 11:43:01" itemprop="dateCreated datePublished" datetime="2018-02-14T11:43:01+08:00">2018-02-14</time>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-calendar-check-o"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2018-02-15 11:17:40" itemprop="dateModified" datetime="2018-02-15T11:17:40+08:00">2018-02-15</time>
</span>
<span class="post-category" >
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-folder-o"></i>
</span>
<span class="post-meta-item-text">分类于</span>
<span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/book/" itemprop="url" rel="index"><span itemprop="name">book</span></a></span>
</span>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<blockquote>
<p>明天在哪里 谁会在意你<br>挥别了青春 数不尽的车站<br> ——赵雷《阿刁》<br>又一个年代在变换<br>我已不是无悔的那个青年<br> ——赵雷《理想》</p>
</blockquote>
<h2 id="阅读背景(豆瓣链接)"><a href="#阅读背景(豆瓣链接)" class="headerlink" title="阅读背景(豆瓣链接)"></a>阅读背景(<a href="https://book.douban.com/subject/26996646/" target="_blank" rel="external">豆瓣链接</a>)</h2><p>为了学习企业的财务分析,更好了解和认识企业价值和企业运行机制,我看到了《用生活常识就能看懂财务报表》这本书。<br>这本书一共只有不到200页,内容通俗易懂,没有太多枯燥的经济指标,以生动活泼的生活案例与企业运行的基本概念进行类比,对于非经济管理科班出身的朋友来说,是一本好书。<br>读这本的目的就是,大体看懂公司财报的关键指标,把握大方向,为投资选股积累知识;还有一方面就是,转换员工到老板的思维方式,从实际问题出发,思考公司运行的基本问题。</p>
<!--noindex-->
<div class="post-button text-center">
<a class="btn" href="/2018/02/14/book/【书单】生活常识看财务报表/#更多" rel="contents">
阅读全文 »
</a>
</div>
<!--/noindex-->
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</div>
</article>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://jasonding.top/2018/02/04/personal/从马化腾和曹德旺的视频中谈个人想法的变化/">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Jason Ding">
<meta itemprop="description" content="">
<meta itemprop="image" content="/images/lark.jpg">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="Jason Ding的博客">
</span>
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="/2018/02/04/personal/从马化腾和曹德旺的视频中谈个人想法的变化/" itemprop="url">
从马化腾和曹德旺的视频中谈个人想法的变化
</a>