轻松上手,快乐学习!

世界,您好!


欢迎使用WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧!
 

标题1

标题2

标题3

标题4

标题5
标题6
#!/usr/bin/python 
list1 = ['physics', 'chemistry', 1997, 2000] 
list2 = [1, 2, 3, 4, 5, 6, 7 ] 
print "list1[0]: ", list1[0] 
print "list2[1:5]: ", list2[1:5]
引用一段内容

  这里是一段文本内容包含有keyword 字体加粗 斜体字

  • list1
  • list2
  • list3
Operator Example Same As Try it
= x = 5 x = 5 试一试»
+= x += 3 x = x + 3 试一试
-= x -= 3 x = x - 3 Try it »
*= x *= 3 x = x * 3 Try it »
/= x /= 3 x = x / 3 Try it »
%= x %= 3 x = x % 3 Try it »
//= x //= 3 x = x // 3 Try it »
**= x **= 3 x = x ** 3 Try it »
&= x &= 3 x = x & 3 Try it »
|= x |= 3 x = x | 3 Try it »
^= x ^= 3 x = x ^ 3 Try it »
>>= x >>= 3 x = x >> 3 Try it »
<<= x <<= 3 x = x << 3 Try it »

Example

Floats:
x = 35e3 y = 12E4 z = -87.7e100print(type(x)) print(type(y)) print(type(z))
Run example »

列表方法

Python 拥有的列表操作方法如下

名称 描述
append() 添加一个元素
clear() 清除所有元素
copy() 返回一个复制列表
count() 返回元素个数
extend() Add the elements of a list (or any iterable), to the end of the current list
index() Returns the index of the first element with the specified value
insert() Adds an element at the specified position
pop() Removes the element at the specified position
remove() Removes the item with the specified value
reverse() Reverses the order of the list
sort() Sorts the list

标题1

h1 h2 h3
t1 t1 t1
t2 t2 t2

 

实例

标题
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>页面标题</title> </head> <body> <h1>我的第一个标题</h1> <p>我的第一个段落。</p> </body> </html> 运行实例 »

 

ddd

 

实例

TEST
<html></html>
运行实例 »
 

实例

PYTHON标题
print "hello word" for x in range(10): print x import MySQLdb import time import linecache import datetime import commands import ConfigParser import os import subprocess import sys from automail import Automail import xlwt reload(sys) sys.setdefaultencoding("utf-8")

 

实例

SQL标题
drop table if exists dw_dm_hh_placement_tag_1 ; create table dw_dm_hh_placement_tag_1 as select t.hh_id,t.dim dual_id,dual_name ,t.cnt from ( SELECT bro.hh_id,pos.industry_id2 dim,pos.industry_name2 dual_name,count(pos.industry_id2) cnt FROM dw_ods_fct_placement bro left join dw_ods_fct_ho_tb_tag_dic_position_t pos on bro.positionid = pos.position_id where bro.createtime > DATE_SUB(CURRENT_DATE(),INTERVAL 3 month) group by 1,2) t inner join ( select id from dw_ods_fct_hh hh inner join dw_ods_fct_ho_tb_hh_type_current_t cur on hh.id = cur.user_id and cur.hh_type != 6 where hh.is_soho = 1 ) hh on hh.ID=t.hh_id; 运行实例 »

 

实例

H1测试
#main { padding:16px; font-size: 13px; } #main h1,h2,h3,h4,h5,h6{ margin: 10px 0; } #main h1{font-size: 26px;} #main h2{font-size: 24px;} #main h3{font-size: 22px;} #main h4{font-size: 20px;} #main h5{font-size: 18px;} #main code{ color: crimson; background-color: #f1f1f1; padding-left: 4px; padding-right: 4px; font-size: 110%; }

 


运行结果

hello world!


 

HTML 实例

在HTML的手册中包含有上百的实力 查看HTML手册


HTML参数手册

HTML手册助你在开发中如鱼得水 HTML参考手册


hello angela

<html></html>

 

示例

副标题
<HTML> <title> <link rel="shortcut icon" href="//static.runoob.com/images/favicon.ico" mce_href="//static.runoob.com/images/favicon.ico" type="image/x-icon" > </title> <body></bod> </HTML> 运行实例 »