python print函数

#!/usr/bin/python
print("Hello, World!")
a="xiaohua"
b=["dengdeng","dengchao"]
print('hello:%s world: %s' %(a,b))
#print(b)
y = 200 * 200
x = 10 * 3.25
repr((x, y, ('Google', 'Runoob')))
s=repr((x, y, ('Google', 'Runoob')))
print(s)
c="abcdefg"
str(c)
print("wo shi "+ c)


结果:

Hello, World!
hello:xiaohua world: ['dengdeng', 'dengchao']
(32.5, 40000, ('Google', 'Runoob'))
wo shi abcdefg

你可能感兴趣的:(Script-Python)