#!/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

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐