發表文章

劉任昌Python字串string方法methods

圖片
單元371影片 vs code與w3schools截圖 程式碼 txt = "劉任昌Love蘋果,蘋果我my favoritE水果蘋果" print(txt.count("蘋果")) print('先練習內建函數len',len(txt)) print('find',txt.find("蘋果")) print('rfind',txt.rfind("蘋果")) print("print列印,字串string字元character的組合") print(txt.title()) print(txt.lower()) print(txt.upper()) print(txt.swapcase()) print(txt.zfill(32)) print(txt.startswith("任")) print(len(txt)) for i in range(33333, 33344): print(chr(i)) for i in range(65, 70): print(chr(i)) w3schools字串方法列表 Method Description capitalize() Converts the first character to upper case casefold() Converts string into lower case center() Returns a centered string count() Returns the number of times a specified value occurs in a string encode() Returns an encoded version of the string endswith() Returns true if the string ends with the specified value expandtabs() Sets the tab size of the string find() Searches the string for a specified value ...

劉任昌CANVAS繪製選擇權到期日損益

劉任昌canvas繪圖套件繪製選擇權到期日損益圖 買入選擇權到期日損益 賣出選擇權到期日損益

2015年一月三日乙班

圖片
Java程式碼 import java.awt.*; import java.awt.geom.Line2D; import javax.swing.*; public class Options { public static void main(String[] args) { JFrame frame = new JFrame("劉任昌Java繪製選擇權到期日損益"); Container cp = frame.getContentPane(); cp.add(new JComponent() { public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D) g; g2.setStroke(new BasicStroke(2));//stroke中風,筆觸 g2.setFont(new Font("monospaced", Font.BOLD , 20)); g2.drawString("買入賣權到期日損益",0,120); g2.draw(new Line2D.Float(0, 0, 100, 100)); g2.draw(new Line2D.Float(100, 100, 200, 100)); g2.drawString("買入買權到期日損益",300,120); g2.draw(new Line2D.Float(300, 100, 400, 100)); g2.draw(new Line2D.Float(400, 100, 500, 0)); g2.drawString("賣出賣權到期日損益",0,180); g2.draw(new Line2D...

劉任昌Java繪製選擇權到期日損益圖

圖片

劉任昌JAVA繪製選擇權到期日損益圖

圖片

劉任昌canvas與svg繪圖套件

劉任昌canvas繪圖套件繪製選擇權到期日損益圖 劉任昌買入選擇權到期日損益 劉任昌賣出選擇權到期日損益 w3shools學習canvas Your browser does not support the HTML canvas tag. w3shools學習svg Sorry, your browser does not support inline SVG. Note: strong強調.拷貝自w3schools.https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_ellipses opacity optical光學的 dur=duration時間長度

賴清德金融市場153到170數學表達

圖片
金融市場常識題庫153至163 mfrac=math fraction分數text文字 ms商業套裝C 除權息參考價 除權前一天60除權無償配股利的開盤參考價 除權息前一天價值=除權息當天價值 60=3+x⇒x=57 除權前一天60除權2元股票股利的開盤參考價 除權息前一天價值=除權息當天價值 60=(1+ 2 10 )x=1.2x⇒x= 60 1+0.2 =50 除權前一天60除權2元股票股利+3元現金股利的開盤參考價 除權息前一天價值=除權息當天價值 60=3+(1+ 2 10 )x=1.2x⇒x= 60-3 1+0.2 =47.5 練習mroot開平方msqrt 2 7 大約1(1+0.1) 開平方 100.0 =10 信用戶維持率 fraction分數 融資戶維持率= 融資購買股票現在的價值 融資的金額 division軍團區塊 融券維持率= 放空股票的金額+保證金 放空股票的現在價值 整戶維持率=上面分子加分子 / 分母加分母 劉任昌358影片 以上的程式碼 <STYLE>H1{BACKGROUND-COLOR:DARKGREEN; COLOR:WHITE; PADDING:5PX;TEXT-ALIGN:CENTER} .d{font-size:2em; text-align:center;line-height:1.5;} </STYLE> <H1 class="d">金融市場常識題庫153至163</H1> mfrac=math fraction分數text文字 ms商業套裝C, <h1>除權息參考價</h1> <div class="d"> <h2>除權前一天60除權無償配股利的開盤參考價</h2>  除權息前一天價值=除權息當天價值<br/> <math><mtext>60=3+x&rArr;x=57</mtext...