# 输出第一句 print("hello World!") '''这是一句注释''' name ="jason" age =18 print(name) print(age) '''数组====================================''' list =[1,2,3,4,5,213] print(list[1:4]) '''元组==================''' tuple=(1,3,5,6,7) print(tuple) print(tuple[0]) print(tuple[0],tuple[1]) '''定义方法====================================''' def jason(): print("asdaad") def test(): print("sadada") test() '''添加返回值''' def Add(): return 1000 value=Add() print(value) print(test()) print(Add()) print("字典学习=================================") dict ={"asd":7,"sadas":9} print(dict['asd']) print("时间和日期========================================") '''导入模块--------模块名.函数名''' import time print(time.time()) '''pass''' letter='ad' print("goodbye")