摘要:
#define show(name) showword(#name)void showword(const char *s){ printf("%s\n");}int main(){ show(ABC); return 0;}结果:ABC运算符的作用是将ABC变为了"ABC",并以此为参数传给... 阅读全文
posted @ 2014-09-06 22:18
米其林轮船
阅读(197)
评论(0)
推荐(0)
摘要:
//: 除后向下取正 -3//2=-2**: 幂 3**3 = 27not: !and: &&or: ||除了以上几个之外,其余与C++相同length = 3width = 4area = length * widthprint('Area is',area)output:Area is 12注意... 阅读全文
posted @ 2014-09-06 12:03
米其林轮船
阅读(135)
评论(0)
推荐(0)
摘要:
Numbes:integerfloat pointcomplex: e.g. (-5+4j)Strings:单引号双引号用法一致,三个单引号或三个双引号表示多行字符串'''first linesecond line,third line.'''raw strings:让转义字符变为一般字符r'New... 阅读全文
posted @ 2014-09-06 11:50
米其林轮船
阅读(156)
评论(0)
推荐(0)

浙公网安备 33010602011771号