-
Các toán tử thường dùng trong Python

Toán tử số học cơ bản Toán tử gán Toán tử So sánh Toán tử Logic Độ ưu tiên toán tử 1.Toán tử số học cơ bản Toán tử Mô tả Ví dụ + Cộng 8+16 =>Kết quả 24 – Trừ 16-8 =>Kết quả 8 * Nhân 8*8 =>Kết quả 64 / Chia 9/2 =>Kết…
-
Số phức là gì? Giải thích dễ hiểu về số phức

Số phức là gì? Số thực có thể được hình dung là những giá trị trong không gian 1 chiều, còn số phức chính là những giá trị nằm trong không gian 2 chiều gồm: trục thực và trục ảo. Số phức Định nghĩa số phức Số phức có dạng a+bia+bi a, b là các số…
-
Các kiểu biến trong Python

Type int x = 5 print(type(x)) Type Float x = 5.5 print(type(x)) Type String x = ‘Chung! dep trai’ print(type(x)) Type Boelean x = True print(type(x)) Type Comple Số phức x = complex(3,2) print(type(x)) print (x.real,x.imag) Type other import sysconfig print(sysconfig) Kết quả:
-
EclipseでPythonを設定する方法。

Setup 1: python.zipをダウンロードします。アドレスのリンクはこちらです。 python.zip その後に解凍します Setup 2: Eclipseの中に、ヘルプを選択して、Eclipseマケットプレースを押下します そして、pyDevをインストールします インストールを終わってから、Eclipseを再起動します EclipseではpyDevを確認しましょう Setup 4: pythonのライブラリーを設定 Eclipseの中に、ウィンドウを選択して、設定を押下します そして、PyDev–>インタープリター–>pythonインタープリターを選択します Python.exeを設定して、適用して閉じるのボタンを押下します Setup 5: Pythonのプロジェクトを作成
-
.animate()
.animate(): Thực hiện một hình ảnh động (animate) tùy chỉnh của một tập hợp các thuộc tính css. animate(Thuộc tính,Tốc độ,’easing’,function(){}) Thuộc tính: backgroundPositionX (VD: backgroundPositionX:”+=100px”) backgroundPositionY (VD: backgroundPositionY:”+=100px”) borderWidth (VD: borderWidth:”10px”) borderBottomWidth (VD: borderBottomWidth:”10px”) borderLeftWidth (VD: borderLeftWidth:”10px”) borderRightWidth (VD: borderRightWidth:”10px”) borderTopWidth (VD: borderTopWidth:”10px”) borderSpacing (VD: borderSpacing:”10px”) margin (VD: margin:”+=100px”) marginBottom (VD: marginBottom:”+=100px”) marginLeft (VD: marginLeft:”+=100px”) marginRight (VD: marginRight:”+=100px”) marginTop (VD: marginTop:”+=100px”) opacity (VD: opacity:0.25) outlineWidth (VD: outlineWidth:”10px”) padding (VD: padding:”+=100px”)…
-
Creating MySQL sequence example
The following statement creates a table named employees that has the emp_no column is an AUTO_INCREMENT column: CREATE TABLE employees ( emp_no INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(50), last_name VARCHAR(50));
-
.after()
.after(): Chèn nội dung, xác định bởi tham số vào ngay sau mỗi thành phần đã có. Hiển thị trình duyệt:
-
.addClass()
.addClass(): thêm class cho thành phần. .addClass(function(index, class_đã_có){…}) .addClass(tênclass) .addClass(tênclass01 tênclass02) .addClass(function)
-
addBack()
.addBack(): Thêm thành phần vào trước thành phần đã có để cùng thực hiện một hành động. Kết quả: