随笔分类 -  python

希望可以快速掌握python
摘要:import os from pocketsphinx import LiveSpeech, get_model_path model_path = get_model_path() speech = LiveSpeech( verbose=False, sampling_rate=16000, b 阅读全文
posted @ 2022-07-19 16:42 helloWorldhelloWorld 阅读(116) 评论(0) 推荐(0)
摘要:1. python中的整除: // 2. 在函数调用的过程中,进行参数的传递 如果是不可变对象,在函数体的修改不会影响实参的值 如果是可变对象,在函数体的修改会影响实参的值 3. 个数可变的位置形参:函数定义时,可变的位置参数,可变的位置参数个数只能是1个 结果:元素 def fun(*arg): 阅读全文
posted @ 2022-07-08 10:28 helloWorldhelloWorld
摘要:1 import tensorflow as tf 2 import numpy as np 3 4 x = tf.constant([[1, 2, 3], [2, 2, 3]]) 5 print(x) 6 print(tf.reduce_mean(x)) 7 print(tf.reduce_sum 阅读全文
posted @ 2022-07-04 10:36 helloWorldhelloWorld 阅读(39) 评论(0) 推荐(0)
摘要:1、新建tensorflow环境 (1)打开anaconda prompt,输入命令行 conda create -n tensorflow python=3.6 注意:尽量不要更起名字,不然环境容易出错 在选择是否安装时输入“y”(即为“yes”)。 其中tensorflow为新建的虚拟环境名称, 阅读全文
posted @ 2022-07-01 15:54 helloWorldhelloWorld 阅读(1405) 评论(0) 推荐(0)