import sys, time ## print('please enter your name:')# user_input=sys.stdin.readline()# print(user_input)## print('请输入')# print(sys.stdin.readlines()) sys.stdout.write('yanxiatingyu\n')sys.stdout.flush() start_time = time.time()for i in range(1, 1000)
sys-System-specific Configuration Interpreter Settings sys包含用于访问解释器的编译时或运行时配置设置的属性和函数. Build-time Version Information sys.version:一个字符串,包含Python解释器的版本号以及版本号和使用的编译器的额外信息.交互式解释器启动时将显示此字符串.不用从它提取版本信息,使用version_info和platform模块所提供的函数. sys.version_info:一个包
Recall that every python module has a built_in __name__ variable that python sets to the __main__ string only when the file is run as a program,not when it's imported as library so in the python fiel if __name__ == "__main__" : .... is the top-l