python入门练习

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ThinkPet/article/details/82709164
#!/usr/bin/env python 
#-*-encoding:utf-8-*-
#@project = demo914
#@file = test1
#@author = angel
#@creat_time = 2018/9/14 21:18

print('hello python')
print('hello','python')
print("=====================")

# 这是注释,不会执行
# 快速添加注释 Ctrl+/
# print函数会自动识别\n换行符
character = input('请输入一个字符 \n')
print('你输入的字符:\n'+character)
print("=====================")
# 变量不需要声明类型
# 变量可以多次赋不同类型的值
# ctrl+d 快速复制一行
# ctrl+y 删除一行

xxy = "gcvda"
print(xxy)
xxy = 134654
print(xxy)
xxy = 'aaa'
print(xxy)
print("=====================")

x = input("first : \n")
y = input("second : \n")
print(x+y)

print("=====================")

a='1'
b='2'
print(a+b)

print("=====================")

c = 1
d = 2
print(c+d)

print("=====================")

a="3"
b="4"
print(a+b)

print('fgdg')

猜你喜欢

转载自blog.csdn.net/ThinkPet/article/details/82709164