python之print实践

来源:互联网 发布:随机森林算法matlab 编辑:程序博客网 时间:2024/04/30 15:04

环境为Python2.7,sulime3

#!/usr/bin/python

print "hello";#在后期版本可能不兼容了

print("hello "+"free");

print(5+9);

print(1234445678909876543*1234567898765432);

print("free\n"*8);

# result:hello

# hello free

# 14

# 1524007007951833440030361236061576

# free

# free

# free

# free

# free

# free

# free

# free

# [Finished in 0.3s]

# #########################

print(1.0/2.0)

print(2**3)

print(0xaf)

print(011)

x=3

print(x*2)

#result:0.5

#8

#175

#9

#6

1 0
原创粉丝点击