代码的艺术(2)

来源:互联网 发布:比较好的写作软件 编辑:程序博客网 时间:2024/04/30 14:23
package com.qianmo.beziershopcart;/** * Created by wangjitao on 2017/4/10 0010. * E-Mail:543441727@qq.com */public class ShopBean {    private String title;    private String price;    private int count;    public ShopBean(String title, String price, int count) {        this.title = title;        this.price = price;        this.count = count;    }    public String getTitle() {        return title;    }    public void setTitle(String title) {        this.title = title;    }    public String getPrice() {        return price;    }

much better,这里将展示如何在某句话内引用代码比如 <Javascript> </javascript>,这样就可以直接引用了~

@requires_authorizationdef somefunc(param1='', param2=0):    '''A docstring'''    if param1 > param2: # interesting        print 'Greater'    return (param2 - param1 + 1) or Noneclass SomeClass:    pass>>> message = '''interpreter... prompt'''
原创粉丝点击