-
Notifications
You must be signed in to change notification settings - Fork 2
/
[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天.html
1182 lines (1031 loc) · 85 KB
/
[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天.html
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>
<!-- saved from url=(0046)https://ithelp.ithome.com.tw/articles/10207014 -->
<html lang="zh-TW"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">.swal-icon--error{border-color:#f27474;-webkit-animation:animateErrorIcon .5s;animation:animateErrorIcon .5s}.swal-icon--error__x-mark{position:relative;display:block;-webkit-animation:animateXMark .5s;animation:animateXMark .5s}.swal-icon--error__line{position:absolute;height:5px;width:47px;background-color:#f27474;display:block;top:37px;border-radius:2px}.swal-icon--error__line--left{-webkit-transform:rotate(45deg);transform:rotate(45deg);left:17px}.swal-icon--error__line--right{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);right:16px}@-webkit-keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@keyframes animateErrorIcon{0%{-webkit-transform:rotateX(100deg);transform:rotateX(100deg);opacity:0}to{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}}@-webkit-keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}@keyframes animateXMark{0%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}50%{-webkit-transform:scale(.4);transform:scale(.4);margin-top:26px;opacity:0}80%{-webkit-transform:scale(1.15);transform:scale(1.15);margin-top:-6px}to{-webkit-transform:scale(1);transform:scale(1);margin-top:0;opacity:1}}.swal-icon--warning{border-color:#f8bb86;-webkit-animation:pulseWarning .75s infinite alternate;animation:pulseWarning .75s infinite alternate}.swal-icon--warning__body{width:5px;height:47px;top:10px;border-radius:2px;margin-left:-2px}.swal-icon--warning__body,.swal-icon--warning__dot{position:absolute;left:50%;background-color:#f8bb86}.swal-icon--warning__dot{width:7px;height:7px;border-radius:50%;margin-left:-4px;bottom:-11px}@-webkit-keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}@keyframes pulseWarning{0%{border-color:#f8d486}to{border-color:#f8bb86}}.swal-icon--success{border-color:#a5dc86}.swal-icon--success:after,.swal-icon--success:before{content:"";border-radius:50%;position:absolute;width:60px;height:120px;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.swal-icon--success:before{border-radius:120px 0 0 120px;top:-7px;left:-33px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:60px 60px;transform-origin:60px 60px}.swal-icon--success:after{border-radius:0 120px 120px 0;top:-11px;left:30px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 60px;transform-origin:0 60px;-webkit-animation:rotatePlaceholder 4.25s ease-in;animation:rotatePlaceholder 4.25s ease-in}.swal-icon--success__ring{width:80px;height:80px;border:4px solid hsla(98,55%,69%,.2);border-radius:50%;box-sizing:content-box;position:absolute;left:-4px;top:-4px;z-index:2}.swal-icon--success__hide-corners{width:5px;height:90px;background-color:#fff;position:absolute;left:28px;top:8px;z-index:1;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.swal-icon--success__line{height:5px;background-color:#a5dc86;display:block;border-radius:2px;position:absolute;z-index:2}.swal-icon--success__line--tip{width:25px;left:14px;top:46px;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-animation:animateSuccessTip .75s;animation:animateSuccessTip .75s}.swal-icon--success__line--long{width:47px;right:8px;top:38px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-animation:animateSuccessLong .75s;animation:animateSuccessLong .75s}@-webkit-keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@keyframes rotatePlaceholder{0%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}5%{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}12%{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}to{-webkit-transform:rotate(-405deg);transform:rotate(-405deg)}}@-webkit-keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@keyframes animateSuccessTip{0%{width:0;left:1px;top:19px}54%{width:0;left:1px;top:19px}70%{width:50px;left:-8px;top:37px}84%{width:17px;left:21px;top:48px}to{width:25px;left:14px;top:45px}}@-webkit-keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}@keyframes animateSuccessLong{0%{width:0;right:46px;top:54px}65%{width:0;right:46px;top:54px}84%{width:55px;right:0;top:35px}to{width:47px;right:8px;top:38px}}.swal-icon--info{border-color:#c9dae1}.swal-icon--info:before{width:5px;height:29px;bottom:17px;border-radius:2px;margin-left:-2px}.swal-icon--info:after,.swal-icon--info:before{content:"";position:absolute;left:50%;background-color:#c9dae1}.swal-icon--info:after{width:7px;height:7px;border-radius:50%;margin-left:-3px;top:19px}.swal-icon{width:80px;height:80px;border-width:4px;border-style:solid;border-radius:50%;padding:0;position:relative;box-sizing:content-box;margin:20px auto}.swal-icon:first-child{margin-top:32px}.swal-icon--custom{width:auto;height:auto;max-width:100%;border:none;border-radius:0}.swal-icon img{max-width:100%;max-height:100%}.swal-title{color:rgba(0,0,0,.65);font-weight:600;text-transform:none;position:relative;display:block;padding:13px 16px;font-size:27px;line-height:normal;text-align:center;margin-bottom:0}.swal-title:first-child{margin-top:26px}.swal-title:not(:first-child){padding-bottom:0}.swal-title:not(:last-child){margin-bottom:13px}.swal-text{font-size:16px;position:relative;float:none;line-height:normal;vertical-align:top;text-align:left;display:inline-block;margin:0;padding:0 10px;font-weight:400;color:rgba(0,0,0,.64);max-width:calc(100% - 20px);overflow-wrap:break-word;box-sizing:border-box}.swal-text:first-child{margin-top:45px}.swal-text:last-child{margin-bottom:45px}.swal-footer{text-align:right;padding-top:13px;margin-top:13px;padding:13px 16px;border-radius:inherit;border-top-left-radius:0;border-top-right-radius:0}.swal-button-container{margin:5px;display:inline-block;position:relative}.swal-button{background-color:#7cd1f9;color:#fff;border:none;box-shadow:none;border-radius:5px;font-weight:600;font-size:14px;padding:10px 24px;margin:0;cursor:pointer}.swal-button[not:disabled]:hover{background-color:#78cbf2}.swal-button:active{background-color:#70bce0}.swal-button:focus{outline:none;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(43,114,165,.29)}.swal-button[disabled]{opacity:.5;cursor:default}.swal-button::-moz-focus-inner{border:0}.swal-button--cancel{color:#555;background-color:#efefef}.swal-button--cancel[not:disabled]:hover{background-color:#e8e8e8}.swal-button--cancel:active{background-color:#d7d7d7}.swal-button--cancel:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(116,136,150,.29)}.swal-button--danger{background-color:#e64942}.swal-button--danger[not:disabled]:hover{background-color:#df4740}.swal-button--danger:active{background-color:#cf423b}.swal-button--danger:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(165,43,43,.29)}.swal-content{padding:0 20px;margin-top:20px;font-size:medium}.swal-content:last-child{margin-bottom:20px}.swal-content__input,.swal-content__textarea{-webkit-appearance:none;background-color:#fff;border:none;font-size:14px;display:block;box-sizing:border-box;width:100%;border:1px solid rgba(0,0,0,.14);padding:10px 13px;border-radius:2px;-webkit-transition:border-color .2s;transition:border-color .2s}.swal-content__input:focus,.swal-content__textarea:focus{outline:none;border-color:#6db8ff}.swal-content__textarea{resize:vertical}.swal-button--loading{color:transparent}.swal-button--loading~.swal-button__loader{opacity:1}.swal-button__loader{position:absolute;height:auto;width:43px;z-index:2;left:50%;top:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);text-align:center;pointer-events:none;opacity:0}.swal-button__loader div{display:inline-block;float:none;vertical-align:baseline;width:9px;height:9px;padding:0;border:none;margin:2px;opacity:.4;border-radius:7px;background-color:hsla(0,0%,100%,.9);-webkit-transition:background .2s;transition:background .2s;-webkit-animation:swal-loading-anim 1s infinite;animation:swal-loading-anim 1s infinite}.swal-button__loader div:nth-child(3n+2){-webkit-animation-delay:.15s;animation-delay:.15s}.swal-button__loader div:nth-child(3n+3){-webkit-animation-delay:.3s;animation-delay:.3s}@-webkit-keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}@keyframes swal-loading-anim{0%{opacity:.4}20%{opacity:.4}50%{opacity:1}to{opacity:.4}}.swal-overlay{position:fixed;top:0;bottom:0;left:0;right:0;text-align:center;font-size:0;overflow-y:scroll;background-color:rgba(0,0,0,.4);z-index:10000;pointer-events:none;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.swal-overlay:before{content:" ";display:inline-block;vertical-align:middle;height:100%}.swal-overlay--show-modal{opacity:1;pointer-events:auto}.swal-overlay--show-modal .swal-modal{opacity:1;pointer-events:auto;box-sizing:border-box;-webkit-animation:showSweetAlert .3s;animation:showSweetAlert .3s;will-change:transform}.swal-modal{width:478px;opacity:0;pointer-events:none;background-color:#fff;text-align:center;border-radius:5px;position:static;margin:20px auto;display:inline-block;vertical-align:middle;-webkit-transform:scale(1);transform:scale(1);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;z-index:10001;-webkit-transition:opacity .2s,-webkit-transform .3s;transition:opacity .2s,-webkit-transform .3s;transition:transform .3s,opacity .2s;transition:transform .3s,opacity .2s,-webkit-transform .3s}@media (max-width:500px){.swal-modal{width:calc(100% - 20px)}}@-webkit-keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}@keyframes showSweetAlert{0%{-webkit-transform:scale(1);transform:scale(1)}1%{-webkit-transform:scale(.5);transform:scale(.5)}45%{-webkit-transform:scale(1.05);transform:scale(1.05)}80%{-webkit-transform:scale(.95);transform:scale(.95)}to{-webkit-transform:scale(1);transform:scale(1)}}</style>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>[Day22]分析股票 - 股票基本常識 - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天</title>
<meta name="description" content="前言 今天是鐵人的第22天,主要要來介紹股票和投資股票前的一些數學常識(從網路文章中擷取),今天程式的部分比較少,主要是講股票的觀念。接下來的幾個章節才會開始進入股票分析。 股票分析的過程 使用pyt...">
<meta name="keywords" content="iT邦幫忙,iThome">
<meta name="author" content="iThome">
<meta property="og:site_name" content="iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天">
<meta property="og:url" content="https://ithelp.ithome.com.tw/articles/10207014">
<meta property="og:type" content="website">
<meta property="og:title" content="[Day22]分析股票 - 股票基本常識 - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天">
<meta property="og:image" content="https://ithelp.ithome.com.tw/storage/image/fbpic.jpg">
<meta property="og:description" content="前言 今天是鐵人的第22天,主要要來介紹股票和投資股票前的一些數學常識(從網路文章中擷取),今天程式的部分比較少,主要是講股票的觀念。接下來的幾個章節才會開始進入股票分析。 股票分析的過程 使用pyt...">
<meta property="fb:app_id" content="137875859607921">
<link rel="apple-touch-icon" sizes="57x57" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://ithelp.ithome.com.tw/storage/favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="https://ithelp.ithome.com.tw/storage/favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://ithelp.ithome.com.tw/storage/favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="https://ithelp.ithome.com.tw/storage/favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="https://ithelp.ithome.com.tw/storage/favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="https://ithelp.ithome.com.tw/storage/favicons/manifest.json">
<link rel="mask-icon" href="https://ithelp.ithome.com.tw/storage/favicons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="https://ithelp.ithome.com.tw/storage/favicons/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/bootstrap.min.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/jquery-ui.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/font-awesome.min.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/simplemde.min.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/sweetalert.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/select2.min.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/google.css">
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/style.css">
<!-- highlight -->
<link rel="stylesheet" href="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/railscasts.css">
<!-- end -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!--messenger css-->
<script src="chrome-extension://jhffgcfmcckgmioipfnmbannkpncfipo/util.js"></script><script src="chrome-extension://jhffgcfmcckgmioipfnmbannkpncfipo/pagejs.js"></script><style type="text/css">.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_reposition{overflow:hidden;position:relative}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}@keyframes fb_transform{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.fb_animate{animation:fb_transform .3s forwards}
.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_dialog_advanced{border-radius:8px;padding:10px}.fb_dialog_content{background:#fff;color:#373737}.fb_dialog_close_icon{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{left:5px;right:auto;top:5px}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent}.fb_dialog_close_icon:active{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #365899;color:#fff;font-size:15px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title>span{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/yd/r/Cou7n-nqK52.gif) no-repeat 5px 50%;float:left;padding:5px 0 7px 26px}body.fb_hidden{height:100%;left:0;margin:0;overflow:visible;position:absolute;top:-10000px;transform:none;width:100%}.fb_dialog.fb_dialog_mobile.loading{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/ya/r/3rhSv5V8j3o.gif) white no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{background:none;height:auto;min-height:initial;min-width:initial;width:auto}.fb_dialog.fb_dialog_mobile.loading.centered #fb_dialog_loader_spinner{width:100%}.fb_dialog.fb_dialog_mobile.loading.centered .fb_dialog_content{background:none}.loading.centered #fb_dialog_loader_close{clear:both;color:#fff;display:block;font-size:19px;padding-top:20px}#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .4);bottom:0;left:0;min-height:100%;position:absolute;right:0;top:0;width:100%;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_mobile .fb_dialog_iframe{position:sticky;top:0}.fb_dialog_content .dialog_header{background:linear-gradient(from(#738aba), to(#2c4987));border-bottom:1px solid;border-color:#1d3c78;box-shadow:white 0 1px 1px -1px inset;color:#fff;font:bold 14px Helvetica, sans-serif;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{height:43px;width:100%}.fb_dialog_content .dialog_header td.header_left{font-size:13px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:13px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:linear-gradient(from(#4267B2), to(#2a4887));background-clip:padding-box;border:1px solid #29487d;border-radius:3px;display:inline-block;line-height:18px;margin-top:3px;max-width:85px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{background:none;border:none;color:#fff;font:bold 12px Helvetica, sans-serif;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:17px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(https://static.xx.fbcdn.net/rsrc.php/v3/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #4a4a4a;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f5f6f7;border:1px solid #4a4a4a;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_button{text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}#fb_dialog_loader_spinner{animation:rotateSpinner 1.2s linear infinite;background-color:transparent;background-image:url(https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/t-wz8gw1xG1.png);background-position:50% 50%;background-repeat:no-repeat;height:24px;width:24px}@keyframes rotateSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_fluid_desktop,.fb_iframe_widget_fluid_desktop span,.fb_iframe_widget_fluid_desktop iframe{max-width:100%}.fb_iframe_widget_fluid_desktop iframe{min-width:220px;position:relative}.fb_iframe_widget_lift{z-index:1}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100%}</style></head>
<body>
<div class="header">
<div class="header__inner clearfix">
<h1 class="header__logo pull-left"><a href="https://ithelp.ithome.com.tw/"><img src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/logo.svg" alt="iT邦幫忙" class="img-responsive"></a></h1>
<div class="header__promote">
<div class="a12word pull-right">
<div class="a12word__box">
<script type="text/javascript" async="" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/ga.js.下載"></script><script src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/sdk.js.下載" async="" crossorigin="anonymous"></script><script id="facebook-jssdk" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/sdk.js(1).下載"></script><script type="text/javascript" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS.html"> </script><!-- 0_ithome_forum start --><a href="https://adcl.pchome.com.tw/clickAd2.html?q=0~ithome_forum~1269139" target="_blank">HITCON攻防招生啟動</a><!-- 0_ithome_forum end -->
</div>
<div class="a12word__box">
<script type="text/javascript" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(1).html"> </script><!-- 23_ithome_forum start --><a href="https://adcl.pchome.com.tw/clickAd2.html?q=23~ithome_forum~1271774" target="_blank">35 萬公務同仁培養數位化能力</a><!-- 23_ithome_forum end -->
</div>
<div class="a12word__box">
<script type="text/javascript" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(2).html"> </script><!-- 1_ithome_forum start --><a href="https://adcl.pchome.com.tw/clickAd2.html?q=1~ithome_forum~1275084" target="_blank">什麼是 Intel Core vPro 處理器</a><!-- 1_ithome_forum end -->
</div>
</div>
<div class="a970 pull-right">
<script src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(3).html"></script><!-- 3_ithome_forum start --><a href="https://adcl.pchome.com.tw/clickAd2.html?q=3~ithome_forum~1274697" target="_blank"><img border="0" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/pic_1274697_726291.jpg"></a><!-- 3_ithome_forum end -->
</div>
</div>
</div>
<nav class="menu">
<div class="menu__bg">
<div class="menu__container clearfix">
<h1 class="menu__logo">
<a href="https://ithelp.ithome.com.tw/" class="menu__logo-link"><img src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/nav_logo.svg" alt="iT邦幫忙"></a>
</h1>
<ul class="list-unstyled menu__left">
<li class="menu__item">
<a href="https://ithelp.ithome.com.tw/questions" class="menu__item-link menu__item-link--pl">技術問答</a>
</li>
<li class="menu__item">
<a href="https://ithelp.ithome.com.tw/articles?tab=tech" class="menu__item-link menu__item-link--active ">技術文章</a>
</li>
<li class="menu__item">
<a href="https://ithelp.ithome.com.tw/articles?tab=job" class="menu__item-link hidden-xs">iT 徵才</a>
</li>
<li class="menu__item">
<a href="https://ithelp.ithome.com.tw/tags" class="menu__item-link hidden-xs">Tag</a>
</li>
<li class="menu__item">
<a href="https://ithelp.ithome.com.tw/talks" class="menu__item-link hidden-xs">聊天室</a>
</li>
<li class="menu__item menu__item--ironman">
<a href="https://ithelp.ithome.com.tw/ironman?sc=nav" target="_blank" class="menu__item-link hidden-xs">鐵人賽</a>
</li>
</ul>
<ul class="list-unstyled menu__right">
<li class="menu__item">
<div id="searchDropdown" class="menu__search-btn">
<span class="menu__search-toggle"></span>
</div>
</li>
<li class="menu__item">
<a href="https://ithelp.ithome.com.tw/users/login" class="menu__item-link">登入/註冊</a>
</li>
</ul>
</div>
</div>
<div class="menu__dropform">
<div class="menu__container">
<form method="GET" action="https://ithelp.ithome.com.tw/search" accept-charset="UTF-8" role="search" class="clearfix">
<div class="pull-left">
<input name="search" type="text" class="menu__search-input" placeholder="搜尋主題、問題或人">
<input type="radio" class="radio-input" name="tab" value="question" id="searchQA" checked="">
<label for="searchQA" class="radio-label">問答</label>
<input type="radio" class="radio-input" name="tab" value="article" id="searchArticle">
<label for="searchArticle" class="radio-label">文章</label>
<input type="radio" class="radio-input" name="tab" value="tag" id="searchTag">
<label for="searchTag" class="radio-label">Tag</label>
<input type="radio" class="radio-input" name="tab" value="user" id="searchID">
<label for="searchID" class="radio-label">邦友</label>
</div>
<button type="submit" class="btn menu__dropform-btn">搜尋</button>
</form>
</div>
</div>
</nav>
<div class="menu__mask"></div>
</div>
<div class="container index-top">
<div class="row">
<div class="col-md-12 clearfix">
<div class="leftside">
<div class="ir-article-icon-10th clearfix">
<a href="https://ithelp.ithome.com.tw/ironman" target="_blank" class="ir-article-icon-10th__frame">
<img src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/ir-article-10th.png" alt="" class="ir-article-icon-10th__img-bear">
<p class="ir-article-icon-10th__text">2019 iT 邦幫忙鐵人賽</p>
</a>
<img src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/ir-article-10th-2.png" alt="" class="ir-article-icon-10th__img-right">
</div>
<div class="qa-panel clearfix">
<div class="ir-article__days ir-article__days--ai-and-data ">
<div class="ir-article__days-word">DAY <span class="ir-article__days-num">
22
</span></div>
</div>
<div class="qa-panel__side">
<div class="qa-side">
<div class="likeGroup">
<div class="likeGroup__arrow like_btn" data-type="article" data-id="10207014">
<i class="fa fa-caret-up"></i>
</div>
<div class="likeGroup__num">0</div>
</div>
<div class="collection qa-collection" data-toggle="tooltip" data-placement="bottom" title="" data-original-title="加入收藏清單">
<a href="https://ithelp.ithome.com.tw/users/login" class="btn collection__btn collection_btn">
<i class="fa fa-star-o"></i>
</a>
</div>
</div>
</div>
<div class="qa-panel__content">
<div class="qa-header">
<a href="https://ithelp.ithome.com.tw/ironman/ai-and-data" class="group__badge group__badge--ai-and-data">
AI & Data
</a>
<h3 class="ir-article__topic"><a href="https://ithelp.ithome.com.tw/users/20111390/ironman/1791">python 入門到分析股市</a>系列 第
<span class="ir-article__topic-count">22</span> 篇
</h3>
<h2 class="qa-header__title ir-article__title">
[Day22]分析股票 - 股票基本常識
</h2>
<div class="qa-header__tagGroup">
<a href="https://ithelp.ithome.com.tw/tags/articles/2019%E9%90%B5%E4%BA%BA%E8%B3%BD" class="tag qa-header__tagList">2019鐵人賽</a>
</div>
<div class="ir-article-info">
<a href="https://ithelp.ithome.com.tw/users/20111390/ironman" class="ir-article-info__avatar">
<img src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/131380" class="img-circle">
</a>
<div class="ir-article-info__content">
<div><a href="https://ithelp.ithome.com.tw/users/20111390/ironman" class="ir-article-info__name">
Summer
</a></div>
<div class="ir-article-info__view">2117 瀏覽</div>
<div><a href="https://ithelp.ithome.com.tw/ironman/signup/team/41" class="ir-article-info__team"><span class="team-badge">團隊</span>浪流連九程式匠自然產生的佛系碼農專區</a></div>
<div><a title="2018-11-06 00:01:39" class="qa-header__info-time ir-article-info__time">2018-11-06 00:01:39</a></div>
</div>
</div>
</div>
<div class="qa-markdown">
<div class="markdown">
<div class="markdown__style">
<h3>前言</h3>
<p>今天是鐵人的第22天,主要要來介紹股票和投資股票前的一些數學常識(從網路文章中擷取),今天程式的部分比較少,主要是講股票的觀念。接下來的幾個章節才會開始進入股票分析。</p>
<h3>股票分析的過程</h3>
<p>使用python來分析真實世界的財經資料</p>
<ol>
<li>股票的資料:通常是csv檔案,在day6的時候有介紹檔案的部分</li>
<li>資料的分析:統計模型,day7~day14介紹資料的分析</li>
<li>視覺化資料:將資料轉換成圖表,day15~day19</li>
</ol>
<h3>股票市場</h3>
<ul>
<li>初級市場:又稱「發行市場」,資金需求者(包括政府單位、金融機構及公民營企業)為籌集資金,出售有價證券給最初購買者之發行市場</li>
<li>次級市場:又稱「流通市場」,是初級市場發行後之有價證券買賣的交易市場。我們平常所看到的股價與交易資訊大多來自次級市場</li>
</ul>
<h3>交易所</h3>
<p>在台灣處理股票的單位叫做「台灣證券交易所」股份有限公司,成立為1961年10月3日。</p>
<ul>
<li>交易時間:星期一到星期五的 09:00 ~ 13:30。
<ul>
<li>休假停市日除經過特別公告外,與金融業的例行假日相同</li>
<li>台北市宣布停止上班上課時,則台灣証券交易所休市</li>
</ul>
</li>
</ul>
<h3>市場概況</h3>
<p><a href="https://stock-ai.com/eom-1-publiclyTradedCompanys.php" target="_blank">資料來源1</a><br>
<a href="http://www.twse.com.tw/zh/statistics/statisticsWeek" target="_blank">台灣證券交易所</a><br>
<a href="http://www.tpex.org.tw/web/stock/statistics/monthly/monthly_rpt_mkt_info_02.php?l=zh-tw" target="_blank">證券櫃買賣中心 - 上櫃</a><br>
<a href="http://www.tpex.org.tw/web/emergingstock/emg_market_highlight/EmgHighlight.php?l=zh-tw" target="_blank">證券櫃買賣中心 - 興櫃</a></p>
<table>
<thead>
<tr>
<th>公開發行公司</th>
<th>上市公司</th>
<th>上櫃公司</th>
<th>興櫃公司</th>
</tr>
</thead>
<tbody>
<tr>
<td>數量</td>
<td>920</td>
<td>763</td>
<td>257</td>
</tr>
<tr>
<td>市值</td>
<td>285,972.81(億元)</td>
<td>2,607,551(佰萬)</td>
<td>510,665(佰萬)</td>
</tr>
</tbody>
</table>
<h3>股票的歷史資料</h3>
<p>用套件抓取某個股票的歷史資料時,格式通常會如下</p>
<table>
<thead>
<tr>
<th>日期</th>
<th>最高價High</th>
<th>最低價Low</th>
<th>開盤價Open</th>
<th>收盤價Close</th>
<th>成交量Volume</th>
<th>調整後收盤價Adj Close</th>
</tr>
</thead>
<tbody>
<tr>
<td>2015-01-05</td>
<td>140.5</td>
<td>137.5</td>
<td>140.5</td>
<td>139.5</td>
<td>32046000.0</td>
<td>121.474525</td>
</tr>
</tbody>
</table>
<p>股票的價格取決於競標的形式。<br>
開盤價:指的是9點開盤之前,把每一個股票買賣當量做統計所訂出的價格。<br>
收盤價:股票收盤之前,把每一個股票買賣當量做統計所訂出的價格。<br>
日報酬率:把前一天的收盤價和今天的收盤價做比較。</p>
<h3>關於投資幾個數學常識</h3>
<ol>
<li>關於收益率<br>
假設你投資現金有10萬,第一個月收益100%,資金到達20萬,但第二個月損失50%,資金卻會跌回10萬</li>
</ol>
<pre><code class="hljs makefile">money = 10
first_month = 10*(1+1)
second_month = first_month*(1-0.5)
print('第一個月收益:',first_month)
print('第二個月收益:',second_month)
</code></pre>
<pre><code class="hljs sql"><span class="hljs-comment"># 輸出結果</span>
第一個月收益: 20
第二個月收益: 10.0
</code></pre>
<p>結論是<code>虧損比賺錢容易</code></p>
<ol start="2">
<li>關於漲跌停<br>
假設你股票有10萬,有以下兩種情況<br>
(1). 第一天漲10%,第二天跌10%。<br>
(2). 第一天跌10%,第二天漲10%,不管是哪一種資金最後都是9.9萬。</li>
</ol>
<pre><code class="hljs makefile">money = 10
up_first_day = 10*(1+0.1)
up_second_day = up_first_day*(1-0.1)
down_first_day = 10*(1-0.1)
up_second_day = down_first_day*(1+0.1)
print('第一種股票餘額:',up_second_day)
print('第二種股票餘額:',up_second_day)
</code></pre>
<pre><code class="hljs css"># 輸出結果
第一種股票餘額: 9<span class="hljs-selector-class">.9</span>
第二種股票餘額: 9<span class="hljs-selector-class">.9</span>
</code></pre>
<p>結論是<code>漲跌不管前後餘額都一樣</code></p>
<ol start="3">
<li>關於波動性<br>
假設你股票有10萬,第一年賺40%,第二年賠20%,第三年賺30%,第四年賠20%,第五年賺50,第六年賠20%</li>
</ol>
<pre><code class="hljs lua">import <span class="hljs-built_in">math</span> as <span class="hljs-built_in">math</span>
money = <span class="hljs-number">10</span>
six_year = <span class="hljs-number">10</span>*(<span class="hljs-number">1</span>+<span class="hljs-number">0.4</span>)*(<span class="hljs-number">1</span><span class="hljs-number">-0.2</span>)*(<span class="hljs-number">1</span>+<span class="hljs-number">0.3</span>)*(<span class="hljs-number">1</span><span class="hljs-number">-0.2</span>)*(<span class="hljs-number">1</span>+<span class="hljs-number">0.5</span>)*(<span class="hljs-number">1</span><span class="hljs-number">-0.2</span>)
rate = <span class="hljs-built_in">math</span>.<span class="hljs-built_in">pow</span>((six_year/money),<span class="hljs-number">1</span>/<span class="hljs-number">6</span>)<span class="hljs-number">-1</span>
<span class="hljs-built_in">print</span>(<span class="hljs-string">'六年後的資本額:'</span>,six_year, <span class="hljs-string">" 年報酬率:"</span>,rate)
</code></pre>
<pre><code class="hljs css"># 輸出結果
六年後的資本額: 13<span class="hljs-selector-class">.977600000000004</span> 年報酬率: 0<span class="hljs-selector-class">.05739868994194808</span>
</code></pre>
<p>波動性大的股票,年報酬率有時候還會輸績優股</p>
<ol start="4">
<li>每天只賺1%<br>
假設你股票有50萬,每天只賺1%,一年會有250個交易日</li>
</ol>
<pre><code class="hljs lua">money = <span class="hljs-number">50</span>
day = <span class="hljs-number">250</span>
<span class="hljs-built_in">print</span>(<span class="hljs-string">'一年的資本額:'</span>,<span class="hljs-built_in">math</span>.<span class="hljs-built_in">pow</span>(<span class="hljs-number">1</span>+<span class="hljs-number">0.01</span>,day) * money, <span class="hljs-string">" 二年的資本額:"</span>,<span class="hljs-built_in">math</span>.<span class="hljs-built_in">pow</span>(<span class="hljs-number">1</span>+<span class="hljs-number">0.01</span>,day*<span class="hljs-number">2</span>) * money)
</code></pre>
<pre><code class="hljs css"># 輸出結果
一年的資本額: 601<span class="hljs-selector-class">.6077884148732</span> 二年的資本額: 7238<span class="hljs-selector-class">.638621628698</span>
</code></pre>
<p>就算每次報酬只有1%,但只要穩定投資,也可以成長為大資本</p>
<ol start="5">
<li>投資組合<br>
假設你股票有100萬,投資以下組合 無風險資產A(每年5%),高風險資產B(每年-20%~40%),投資80萬到A,20萬到B</li>
</ol>
<pre><code class="hljs erlang">money = <span class="hljs-number">100</span>
big_risk = <span class="hljs-number">20</span>
<span class="hljs-function"><span class="hljs-title">print</span><span class="hljs-params">('最佳投資:', ( (<span class="hljs-number">100</span>-big_risk)</span>*<span class="hljs-params">(<span class="hljs-number">1</span>+<span class="hljs-number">0.05</span>)</span> + <span class="hljs-params">(big_risk)</span>*<span class="hljs-params">(<span class="hljs-number">1</span>+<span class="hljs-number">0.4</span>)</span>))
<span class="hljs-title">print</span><span class="hljs-params">('最差投資:', ( (<span class="hljs-number">100</span>-big_risk)</span>*<span class="hljs-params">(<span class="hljs-number">1</span>+<span class="hljs-number">0.05</span>)</span> + <span class="hljs-params">(big_risk)</span>*<span class="hljs-params">(<span class="hljs-number">1</span>-<span class="hljs-number">0.2</span>)</span>))
<span class="hljs-title">print</span><span class="hljs-params">('平均投資:', ( (<span class="hljs-number">100</span>-big_risk)</span>*<span class="hljs-params">(<span class="hljs-number">1</span>+<span class="hljs-number">0.05</span>)</span> + <span class="hljs-params">(big_risk)</span>*0.5*<span class="hljs-params">(<span class="hljs-number">1</span>-<span class="hljs-number">0.2</span>)</span> + <span class="hljs-params">(big_risk)</span>*0.5*<span class="hljs-params">(<span class="hljs-number">1</span>+<span class="hljs-number">0.4</span>)</span> ))
</span></code></pre>
<pre><code class="hljs css"># 輸出結果
最佳投資: 112<span class="hljs-selector-class">.0</span>
最差投資: 100<span class="hljs-selector-class">.0</span>
平均投資: 106<span class="hljs-selector-class">.0</span>
</code></pre>
<p>最好的年報酬率可以到0.12,最差就攤平,這就是保本基金CPPI技術的雛形。</p>
<ol start="6">
<li>
<p>關於做空<br>
做空最大的收益率就是100%,前提是這支股票下市,但做多的收益率是沒有上限的,因此不要永遠的做空。除非你不相信人類社會會前進。</p>
</li>
<li>
<p>關於賭場贏利<br>
分析了澳門賭客1000個數據,發現勝率為0.53,輸的是0.47,但是如果加上人性去算,<br>
贏錢而離場的人平均贏利為0.34,但輸錢而離場的人卻虧損0.72,因此賭場並不需要做局來降低勝率,只要依靠人性的弱點就可以持續贏,股市亦如此。</p>
</li>
</ol>
<pre><code class="hljs css">0<span class="hljs-selector-class">.53</span>*0<span class="hljs-selector-class">.34</span>+0<span class="hljs-selector-class">.47</span>*(<span class="hljs-selector-tag">-0</span><span class="hljs-selector-class">.72</span>)
</code></pre>
<pre><code class="hljs sql"><span class="hljs-comment"># 輸出結果</span>
-0.15819999999999995
</code></pre>
<p>所以加上人性後來看,莊家還是賺錢的</p>
<p>從以上結論來看,所以為什麼要用程式交易,因為程式看的是數據,不會受心理因素影響。這也是筆者正在學習的,因為在寫這文章之前,筆者完全不懂Python,也不懂股票,更別說什麼數據分析的演算法,現在文章寫到20天,也只是了解Python基礎語法,和資料處理和圖形化,真正要進入股市分析也是一知半解,所以接下來的文章排版會更亂,都是用在網路上看到什麼內容在拿出來分享。</p>
<h3>參考來源</h3>
<p>(1) <a href="https://community.bigquant.com/t/%E9%87%8F%E5%8C%96%E5%B0%8F%E8%AF%BE%E5%A0%82-Finance%E7%B3%BB%E5%88%97%E7%AC%AC%E4%B8%80%E8%AE%B2-%E5%85%B3%E4%BA%8E%E6%8A%95%E8%B5%84%E7%9A%8410%E4%B8%AA%E6%95%B0%E5%AD%A6%E5%B8%B8%E8%AF%86/123" target="_blank"></a><a href="https://community.bigquant.com/t/%E9%87%8F%E5%8C%96%E5%B0%8F%E8%AF%BE%E5%A0%82-Finance%E7%B3%BB%E5%88%97%E7%AC%AC%E4%B8%80%E8%AE%B2-%E5%85%B3%E4%BA%8E%E6%8A%95%E8%B5%84%E7%9A%8410%E4%B8%AA%E6%95%B0%E5%AD%A6%E5%B8%B8%E8%AF%86/123" target="_blank">https://community.bigquant.com/t/%E9%87%8F%E5%8C%96%E5%B0%8F%E8%AF%BE%E5%A0%82-Finance%E7%B3%BB%E5%88%97%E7%AC%AC%E4%B8%80%E8%AE%B2-%E5%85%B3%E4%BA%8E%E6%8A%95%E8%B5%84%E7%9A%8410%E4%B8%AA%E6%95%B0%E5%AD%A6%E5%B8%B8%E8%AF%86/123</a></p>
<h3>之前的章節</h3>
<ul>
<li>安裝環境
<ul>
<li>
<a href="https://ithelp.ithome.com.tw/articles/10199666" target="_blank">安裝Anaconda</a>
</li>
<li>
<a href="https://ithelp.ithome.com.tw/articles/10200046" target="_blank">安裝Jupyter notebook</a>
</li>
</ul>
</li>
<li>統計
<ul>
<li>
<a href="https://ithelp.ithome.com.tw/articles/10204118" target="_blank">統計基礎</a>
</li>
<li>
<a href="https://ithelp.ithome.com.tw/articles/10202496" target="_blank">隨機變數(Random Variable)</a>
</li>
</ul>
</li>
<li>程式碼位置
<ul>
<li>
<a href="https://github.com/lastsummer/learn_python_data_analysis/blob/master/06.stock/day22.ipynb" target="_blank">github</a><br>
因為作者本身也是第一次學習Python和寫程式文章,也是才碰股票沒幾天而已,所以編排上會有點亂,觀念可能也會錯誤,如果有疑問可以提出一起討論。</li>
</ul>
</li>
</ul>
<br>
</div>
</div>
</div>
<div class="qa-action">
<ul class="list-inline qa-action__list">
<li>
<a href="https://ithelp.ithome.com.tw/articles/10207014#reply" class="qa-action__link qa-action__link--reply">
<i class="fa fa-comment fa-fw qa-action__icon"></i>留言 </a>
</li>
<li>
<a href="https://ithelp.ithome.com.tw/users/login" class="qa-action__trace">
<i class="fa fa-heart-o fa-fw qa-action__icon"></i>追蹤
</a>
</li>
<li class="pull-right">
<a href="https://ithelp.ithome.com.tw/users/login" class="qa-action__link qa-action__link-report report_btn">
<i class="fa fa-flag fa-fw qa-action__icon"></i>檢舉
</a>
</li>
</ul>
</div>
</div>
<div class="social-share clearfix">
<div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; width: 0px; height: 0px;"><div><iframe name="fb_xdm_frame_https" id="fb_xdm_frame_https" aria-hidden="true" title="Facebook Cross Domain Communication Frame" tabindex="-1" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/xd_arbiter.html" style="border: none;"></iframe></div><div></div></div></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like fb_iframe_widget" data-href="https://ithelp.ithome.com.tw/articles/10207014" data-width="36px" data-layout="box_count" data-action="like" data-show-faces="false" data-share="false" fb-xfbml-state="rendered" fb-iframe-plugin-query="action=like&app_id=&container_width=40&href=https%3A%2F%2Fithelp.ithome.com.tw%2Farticles%2F10207014&layout=box_count&locale=zh_TW&sdk=joey&share=false&show_faces=false&width=36px"><span style="vertical-align: bottom; width: 41px; height: 40px;"><iframe name="f33b79bcfe7c268" height="1000px" title="fb:like Facebook Social Plugin" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/like.html" style="border: none; visibility: visible; width: 41px; height: 40px;" class=""></iframe></span></div>
<ul class="soc">
<li><a class="soc-twitter" href="https://twitter.com/intent/tweet?text=https://ithelp.ithome.com.tw/articles/10207014" target="_blank"></a></li>
<li><a class="soc-facebook" href="https://www.facebook.com/sharer/sharer.php?u=https://ithelp.ithome.com.tw/articles/10207014" target="_blank"></a></li>
<li><a class="soc-google" href="https://plus.google.com/share?url=https://ithelp.ithome.com.tw/articles/10207014" target="_blank"></a></li>
</ul>
</div> </div>
<div class="article-series">
<div class="clearfix article-series-page">
<div class="article-series-page__line"></div>
<div class="article-series-page__wrapper">
<a href="https://ithelp.ithome.com.tw/articles/10206417" class="article-series-page__link">
<div class="article-series-page__arrow article-series-page__arrow--left"><i class="fa fa-fw fa-angle-left" aria-hidden="true"></i></div>
<div class="article-series-page__content">
<div class="article-series-page__text">上一篇</div>
<div class="article-series-page__title">[Day19]seaborn - 樣式設定</div>
</div>
</a>
</div>
<div class="article-series-page__wrapper text-right">
<a href="https://ithelp.ithome.com.tw/articles/10201985" class="article-series-page__link">
<div class="article-series-page__arrow article-series-page__arrow--right"><i class="fa fa-fw fa-angle-right" aria-hidden="true"></i></div>
<div class="article-series-page__content">
<div class="article-series-page__text">下一篇</div>
<div class="article-series-page__title">[Day30]心得分享</div>
</div>
</a>
</div>
</div>
<div class="article-series-catalog">
<div class="article-series-catalog__badge">
系列文
</div>
<div class="article-series-catalog__topic">
<a href="https://ithelp.ithome.com.tw/users/20111390/ironman/1791" class="article-series-catalog__topic-link">python 入門到分析股市</a>
共 <span class="article-series-catalog__num">30</span> 篇
</div>
<div class="clearfix">
<div>
<div class="article-series-catalog__title">目錄</div>
<div class="pull-right subscription-group">
<a href="https://ithelp.ithome.com.tw/users/login" class="article-series-catalog__subscription subscription-btn">
<i class="fa fa-bookmark-o fa-fw" aria-hidden="true"></i>訂閱系列文
</a>
<div class="article-series-catalog__subscription-num">
<span class="subscription-amount">150</span> 人訂閱
</div>
</div>
</div>
<ol class="article-series-catalog__lists">
<li class="article-series-catalog__list">
<div class="article-series-catalog__list-num">26</div>
<a href="https://ithelp.ithome.com.tw/articles/10204773" class="article-series-catalog__link">[Day26] 財報爬蟲和分析</a>
</li>
<li class="article-series-catalog__list">
<div class="article-series-catalog__list-num">27</div>
<a href="https://ithelp.ithome.com.tw/articles/10207232" class="article-series-catalog__link">[Day27]投資組合的風險評估 - 算術平均數</a>
</li>
<li class="article-series-catalog__list">
<div class="article-series-catalog__list-num">28</div>
<a href="https://ithelp.ithome.com.tw/articles/10207621" class="article-series-catalog__link">[Day28]投資組合的風險評估 - 對數收益率</a>
</li>
<li class="article-series-catalog__list">
<div class="article-series-catalog__list-num">29</div>
<a href="https://ithelp.ithome.com.tw/articles/10208534" class="article-series-catalog__link">[Day29] 使用Prophet預測股票</a>
</li>
<li class="article-series-catalog__list">
<div class="article-series-catalog__list-num">30</div>
<a href="https://ithelp.ithome.com.tw/articles/10201985" class="article-series-catalog__link">[Day30]心得分享</a>
</li>
</ol>
<a href="https://ithelp.ithome.com.tw/users/20111390/ironman/1791"><i class="fa fa-fw fa-chevron-circle-right" aria-hidden="true"></i>完整目錄</a>
</div>
</div>
</div>
<div id="reply">
<div class="reply-status">
<h4 class="text-center">尚未有邦友留言</h4>
<a href="https://ithelp.ithome.com.tw/users/login" class="btn btn-main">立即登入留言</a>
</div>
</div>
</div>
<div class="rightside">
<div class="sidebox">
<a href="https://ithelp.ithome.com.tw/ironman?sc=iThelpR" target="_blank" class="ir-sidebox__header ir-sidebox__header--ironman">
<img src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/ironman9thsidebar.png" alt="" class="ir-sidebox__header-img">2019 iT 邦幫忙鐵人賽
<i class="fa fa-chevron-circle-right" aria-hidden="true"></i>
</a>
<div class="ir-sidebox__body clearfix">
<div class="ir-sidebox__countdown ir-sidebox__countdown--bottom">
累計文章數
<div class="ir-sidebox__countdown-num">9283<span class="ir-sidebox__countdown-unit"> 篇</span></div>
</div>
<div class="ir-sidebox__countdown ir-sidebox__countdown--space ir-sidebox__countdown--bottom">
參賽組數
<div class="ir-sidebox__countdown-num">523<span class="ir-sidebox__countdown-unit"> 組</span></div>
</div>
<div class="ir-sidebox__countdown">
完賽人數
<div class="ir-sidebox__countdown-time">
<div class="ir-sidebox__countdown-num">
264 <span class="ir-sidebox__countdown-unit"> 人</span>
</div>
</div>
</div>
<div class="ir-sidebox__countdown ir-sidebox__countdown--space">
團體組數
<div class="ir-sidebox__countdown-num">21<span class="ir-sidebox__countdown-unit"> 組</span></div>
</div>
</div>
</div>
<div class="sidebox">
<div class="ir-sidebox__header">
鐵人賽熱門主題
</div>
<div class="sidebox__body clearfix">
<ul class="list-unstyled sidebox__list">
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20105988/ironman/1699?sc=iThelpR" target="_blank" class="sidebox__itemLink">輕量高效.NET Core開源Blog引擎:Miniblog.Core</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20105988/ironman/1622?sc=iThelpR" target="_blank" class="sidebox__itemLink">三十天.NET❤️Azure漸進式開發專案</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20107637/ironman/1927?sc=iThelpR" target="_blank" class="sidebox__itemLink">可不可以不要寫糙 code</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20091910/ironman/1874?sc=iThelpR" target="_blank" class="sidebox__itemLink">程式設計師大冒險</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20090728/ironman/1600?sc=iThelpR" target="_blank" class="sidebox__itemLink">Angular 深入淺出三十天</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20092379/ironman/2062?sc=iThelpR" target="_blank" class="sidebox__itemLink">Go劍復國-30天導入Golang</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20105694/ironman/1642?sc=iThelpR" target="_blank" class="sidebox__itemLink">[Andriod] Andriod Studio 從入門到進入狀況</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20111390/ironman/1791?sc=iThelpR" target="_blank" class="sidebox__itemLink">python 入門到分析股市</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20112540/ironman/2064?sc=iThelpR" target="_blank" class="sidebox__itemLink">英雄集結:深度學習的魔法使們</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/users/20072651/ironman/1779?sc=iThelpR" target="_blank" class="sidebox__itemLink">DevOps學習之旅</a>
</li>
</ul>
<a href="https://ithelp.ithome.com.tw/ironman?sc=iThelpR" target="_blank" class="ir-sidebox__link"><i class="fa fa-fw fa-chevron-circle-right" aria-hidden="true"></i>前往鐵人賽</a>
</div>
</div>
<div class="sidebox">
<div class="sidebox__header">
熱門問題
</div>
<div class="sidebox__body">
<ul class="list-unstyled sidebox__list">
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194303" class="sidebox__itemLink">
有關 被機關上網公告性騷擾不成立案求洩漏個資求民事賠償在一審簡易庭被法官駁回 (關說)
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194318" class="sidebox__itemLink">
只會VB.net 桌面程式想換更好的工作
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194316" class="sidebox__itemLink">
客戶資料保密問題
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194300" class="sidebox__itemLink">
請問 Excel 有方法產生一千萬個介於0~1之間的不重複亂數嗎?
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194337" class="sidebox__itemLink">
網頁前端與後端網址
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194350" class="sidebox__itemLink">
Windows 10 更新失敗
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194335" class="sidebox__itemLink">
製作一個人臉辨識比對 App
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194354" class="sidebox__itemLink">
電商商品照的建議做法?
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194332" class="sidebox__itemLink">
還不是會員的購物車做法?
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194322" class="sidebox__itemLink">
Php vs c#
</a>
</li>
</ul>
</div>
</div>
<div class="sidebox">
<script src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(4).html"></script><!-- 47_ithome_forum start --><a href="https://adcl.pchome.com.tw/clickAd2.html?q=47~ithome_forum~1274699" target="_blank"><img border="0" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/pic_1274699_726293.jpg"></a><!-- 47_ithome_forum end -->
<div class="a19word">
<script type="text/javascript" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(5).html"> </script><!-- 2_ithome_forum start -->.<a href="https://adcl.pchome.com.tw/clickAd2.html?q=2~ithome_forum~1275069" target="_blank">老舊電腦會影響公司營運與商機 </a><br>.<a href="https://adcl.pchome.com.tw/clickAd2.html?q=2~ithome_forum~1271773" target="_blank">身為數位政府一員的您,絕對不能錯過8/28 數位政府高峰會! </a><br>.<a href="https://adcl.pchome.com.tw/clickAd2.html?q=2~ithome_forum~1269138" target="_blank">鎮守資安門戶!精兵實戰課程立即搶票 </a><br><!-- 2_ithome_forum end -->
</div>
</div>
<div class="sidebox a240">
<script type="text/javascript" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(6).html"> </script>
</div>
<div class="sidebox">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-page fb_iframe_widget" data-href="https://www.facebook.com/ithelpfans/" data-width="300" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" fb-xfbml-state="rendered" fb-iframe-plugin-query="adapt_container_width=true&app_id=&container_width=300&hide_cover=false&href=https%3A%2F%2Fwww.facebook.com%2Fithelpfans%2F&locale=zh_TW&sdk=joey&show_facepile=true&small_header=false&width=300"><span style="vertical-align: bottom; width: 300px; height: 181px;"><iframe name="feec72aecac364" width="300px" height="1000px" title="fb:page Facebook Social Plugin" frameborder="0" allowtransparency="true" allowfullscreen="true" scrolling="no" allow="encrypted-media" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/page.html" style="border: none; visibility: visible; width: 300px; height: 181px;" class=""></iframe></span></div>
</div>
<div class="sidebox">
<div class="sidebox__header">
站方公告
</div>
<div class="sidebox__body">
<ul class="list-unstyled sidebox__list">
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/announces/39" class="sidebox__itemLink">
☀️是的,iT邦幫忙鐵人賽來了☀️ 9月2日開賽,現在開始準備剛剛好喔!
</a>
</li>
</ul>
</div>
</div>
<div class="sidebox">
<div class="sidebox__header clearfix">
熱門tag
<a href="https://ithelp.ithome.com.tw/tags" class="sidebox__moreLink">看更多<i class="fa fa-caret-right fa-fw"></i></a>
</div>
<div class="sidebox__body">
<a href="https://ithelp.ithome.com.tw/tags/questions/%E9%90%B5%E4%BA%BA%E8%B3%BD" class="tag sidebox__tagList">
鐵人賽
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/2019%E9%90%B5%E4%BA%BA%E8%B3%BD" class="tag sidebox__tagList">
2019鐵人賽
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/2018%E9%90%B5%E4%BA%BA%E8%B3%BD" class="tag sidebox__tagList">
2018鐵人賽
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/2017%E9%90%B5%E4%BA%BA%E8%B3%BD" class="tag sidebox__tagList">
2017鐵人賽
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/windows" class="tag sidebox__tagList">
windows
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/windows%20server" class="tag sidebox__tagList">
windows server
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/javascript" class="tag sidebox__tagList">
javascript
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/linux" class="tag sidebox__tagList">
linux
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/php" class="tag sidebox__tagList">
php
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E7%A8%8B%E5%BC%8F%E8%A8%AD%E8%A8%88" class="tag sidebox__tagList">
程式設計
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E5%88%86%E4%BA%AB" class="tag sidebox__tagList">
分享
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E8%B3%87%E8%A8%8A%E5%AE%89%E5%85%A8" class="tag sidebox__tagList">
資訊安全
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E8%81%B7%E5%A0%B4" class="tag sidebox__tagList">
職場
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E5%B0%88%E6%A1%88%E7%AE%A1%E7%90%86" class="tag sidebox__tagList">
專案管理
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E5%B7%A5%E4%BD%9C" class="tag sidebox__tagList">
工作
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E4%BC%BA%E6%9C%8D%E5%99%A8" class="tag sidebox__tagList">
伺服器
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/%E7%B6%B2%E9%A0%81%E8%A8%AD%E8%A8%88" class="tag sidebox__tagList">
網頁設計
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/sql" class="tag sidebox__tagList">
sql
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/c%23" class="tag sidebox__tagList">
c#
</a>
<a href="https://ithelp.ithome.com.tw/tags/questions/mysql" class="tag sidebox__tagList">
mysql
</a>
</div>
</div>
<div class="sidebox">
<div class="sidebox__header">
熱門回答
</div>
<div class="sidebox__body">
<ul class="list-unstyled sidebox__list">
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194318" class="sidebox__itemLink">
只會VB.net 桌面程式想換更好的工作
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194316" class="sidebox__itemLink">
客戶資料保密問題
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194303" class="sidebox__itemLink">
有關 被機關上網公告性騷擾不成立案求洩漏個資求民事賠償在一審簡易庭被法官駁回 (關說)
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194300" class="sidebox__itemLink">
請問 Excel 有方法產生一千萬個介於0~1之間的不重複亂數嗎?
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194322" class="sidebox__itemLink">
Php vs c#
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194350" class="sidebox__itemLink">
Windows 10 更新失敗
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194304" class="sidebox__itemLink">
SQL UPDATE問題
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194307" class="sidebox__itemLink">
windows xp to VM
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194310" class="sidebox__itemLink">
如何利用javascript完成輸入指定字符便觸發功能
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/questions/10194315" class="sidebox__itemLink">
kkbox 實習
</a>
</li>
</ul>
</div>
</div>
<div class="sidebox">
<script src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/getAd2JS(7).html"></script><!-- 9_ithome_forum start --><div ad_type="9"><a href="https://adcl.pchome.com.tw/clickAd2.html?q=9~ithome_forum~1269136" target="_blank"><img border="0" src="./[Day22]分析股票 - 股票基本常識 - iT 邦幫忙__一起幫忙解決難題,拯救 IT 人的一天_files/pic_1269136_724094.gif"></a></div><!-- 9_ithome_forum end -->
</div>
<div class="sidebox">
<div class="sidebox__header">
熱門文章
</div>
<div class="sidebox__body">
<ul class="list-unstyled sidebox__list">
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212310" class="sidebox__itemLink">
三分鐘學會安裝 LibreNMS SNMP Tools CentOS 7 (Apache)
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212286" class="sidebox__itemLink">
【Python 超入門】(9) input()函數- 使用者跟電腦對話的方法
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212270" class="sidebox__itemLink">
資料結構(一)變數、陣列、鏈結串列差別在哪?
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212294" class="sidebox__itemLink">
手機VPN IOS 推薦:手機平板都需要好跳板~
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212330" class="sidebox__itemLink">
論線上博彩中的比特幣
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212292" class="sidebox__itemLink">
iPhone 和 Android 互傳聯絡人必學方法(兩步完成)
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212333" class="sidebox__itemLink">
CORS / XMLHttpRequest 解決方法
</a>
</li>
<li class="sidebox__item">
<a href="https://ithelp.ithome.com.tw/articles/10212344" class="sidebox__itemLink">
How to Scrape Websites Without Being Blocked?(如何避免爬蟲被封?)
</a>
</li>