python print函数
#!/usr/bin/pythonprint("Hello, World!")a="xiaohua"b=["dengdeng","dengchao"]print('hello:%s world: %s' %(a,b))#print(b)y = 200 * 200x = 10 * 3.25repr((x, y, ('Google', 'Runoob')))s=repr((x, y,
·
#!/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
更多推荐



所有评论(0)