WP-codebox Syntax highlight testing

Bash Code

echo "hello world."

C  code

#include  ;
int main(int argc, char *argv[])
{
    printf("hello, world.\n");
    return 0
}

Python code

'''
Created on 2011-5-5

@author: Jay Ren
'''

def dict_test():
    a_dict = {'server':'Apache','db':'MySQL'}
    print(a_dict['db'])
    a_dict['os'] = 'Linux'
    print(a_dict)
    a_dict['db'] = 'Oracle'
    print(a_dict['db'])
    
    b_dict = {1:['Jay','Yongjie'], 2:['Afra','Xuejiao']}
    print(len(b_dict))
    print(b_dict[2][1])

if __name__ == '__main__':
    dict_test()

master

Stay hungry, stay foolish.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

*