查看python安装了哪些包
方法一:进入python命令行,输入 help() help > modules 或 help(‘ […]
人生没有原因,闯出一路精彩
方法一:进入python命令行,输入 help() help > modules 或 help(‘ […]
利用清华http源安装: pip install -i https://pypi.doubanio.com/s […]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
from urllib2 import urlopen from json import load my_ip = urlopen('http://ip.42.pl/raw').read() print 'ip.42.pl/raw\t', my_ip my_ip = load(urlopen('https://jsonip.com'))['ip'] print 'jsonip.com\t', my_ip #my_ip = load(urlopen('https://httpbin.org/ip'))['origin'] #print 'httpbin.org/ip\t', my_ip my_ip = load(urlopen('https://api.ipify.org/?format=json'))['ip'] print 'api.ipify.org/?format=json\t', my_ip import re import os def my_ip(): get_ip_method = os.popen('curl -s ip.cn') get_ip_responses = get_ip_method.readlines()[0] get_ip_pattern = re.compile(r'\d+\.\d+\.\d+\.\d+') get_ip_value = get_ip_pattern.findall(get_ip_responses)[0] return get_ip_value my_ip = my_ip() print 'ip.cn aliyun\t', my_ip |
第一步,安装alidn的sdk
1 |
pip install aliyun-python-sdk-alidns |
第二步,按下 […]
http://blog.csdn.net/pipisorry/article/details/43277755 […]
matplotlib.plot显示及保存一张图片: [crayon-651d5870c715572961046 […]
安装命令:
1 |
sudo pip install pillow |
在用matplotlib.pyp […]
用sublime text 安装了2个插件anaconda, SublimeLinter, 都有pep8检查, […]
http://www.zmonster.me/2016/02/25/creation-and-io-of-nd […]
http://www.jimmykuu.com/post/how-to-popup-dialog-in-pyq […]
http://nullege.com/codes/search/PyQt4.QtGui.QTableWidge […]
pyqt: http://www.itdadao.com/articles/c15a558446p0.html […]
ubuntu16.04下安装pycharm: 下载pycharm, 到http://www.jetbrains […]
python的binascii模块中包含了几种二进制与可打印字符串相互转换的几种常用编解码函数。dir查看一下 […]
ctype模块可以让python 调用c写的动态库。主要是对应两种语言的基本数据类型,指针,函数指针,结构体等 […]
因为要用树莓派连接微软的SQL server服务器做一些事,用python连接。 首先安装: [crayon- […]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 |
['AWB_MODES', 'CAMERA_CAPTURE_PORT', 'CAMERA_PREVIEW_PORT', 'CAMERA_VIDEO_PORT', 'CAPTURE_TIMEOUT', 'CLOCK_MODES', 'DEFAULT_ANNOTATE_SIZE', 'DRC_STRENGTHS', 'EXPOSURE_MODES', 'FLASH_MODES', 'IMAGE_EFFECTS', 'ISO', 'MAX_FRAMERATE', 'MAX_RESOLUTION', 'METER_MODES', 'RAW_FORMATS', 'STEREO_MODES', '_AWB_MODES_R', '_CLOCK_MODES_R', '_DRC_STRENGTHS_R', '_EXPOSURE_MODES_R', '_FLASH_MODES_R', '_IMAGE_EFFECTS_R', '_METER_MODES_R', '_STEREO_MODES_R', '__class__', '__delattr__', '__doc__', '__enter__', '__exit__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '_camera', '_camera_config', '_camera_exception', '_check_camera_open', '_check_recording_stopped', '_configure_camera', '_configure_splitter', '_control_callback', '_disable_camera', '_enable_camera', '_encoders', '_encoders_lock', '_exif_tags', '_get_ISO', '_get_analog_gain', '_get_annotate_background', '_get_annotate_foreground', '_get_annotate_frame_num', '_get_annotate_text', '_get_annotate_text_size', '_get_awb_gains', '_get_awb_mode', '_get_brightness', '_get_clock_mode', '_get_color_effects', '_get_contrast', '_get_crop', '_get_digital_gain', '_get_drc_strength', '_get_exposure_compensation', '_get_exposure_mode', '_get_exposure_speed', '_get_flash_mode', '_get_frame', '_get_framerate', '_get_framerate_delta', '_get_hflip', '_get_image_denoise', '_get_image_effect', '_get_image_effect_params', '_get_image_encoder', '_get_image_format', '_get_images_encoder', '_get_iso', '_get_meter_mode', '_get_output_format', '_get_overlays', '_get_ports', '_get_preview', '_get_preview_alpha', '_get_preview_fullscreen', '_get_preview_layer', '_get_preview_window', '_get_raw_format', '_get_resolution', '_get_rotation', '_get_saturation', '_get_sensor_mode', '_get_sharpness', '_get_shutter_speed', '_get_still_stats', '_get_timestamp', '_get_vflip', '_get_video_denoise', '_get_video_encoder', '_get_video_format', '_get_video_stabilization', '_get_zoom', '_image_effect_params', '_init_camera', '_init_defaults', '_init_led', '_init_preview', '_init_splitter', '_led_pin', '_overlays', '_preview', '_preview_alpha', '_preview_fullscreen', '_preview_layer', '_preview_window', '_raw_format', '_set_ISO', '_set_annotate_background', '_set_annotate_foreground', '_set_annotate_frame_num', '_set_annotate_text', '_set_annotate_text_size', '_set_awb_gains', '_set_awb_mode', '_set_brightness', '_set_clock_mode', '_set_color_effects', '_set_contrast', '_set_crop', '_set_drc_strength', '_set_exposure_compensation', '_set_exposure_mode', '_set_flash_mode', '_set_framerate', '_set_framerate_delta', '_set_hflip', '_set_image_denoise', '_set_image_effect', '_set_image_effect_params', '_set_iso', '_set_led', '_set_meter_mode', '_set_preview_alpha', '_set_preview_fullscreen', '_set_preview_layer', '_set_preview_window', '_set_raw_format', '_set_resolution', '_set_rotation', '_set_saturation', '_set_sensor_mode', '_set_sharpness', '_set_shutter_speed', '_set_still_stats', '_set_vflip', '_set_video_denoise', '_set_video_stabilization', '_set_zoom', '_splitter', '_splitter_connection', '_start_capture', '_stop_capture', '_used_led', 'add_overlay', 'analog_gain', 'annotate_background', 'annotate_foreground', 'annotate_frame_num', 'annotate_text', 'annotate_text_size', 'awb_gains', 'awb_mode', 'brightness', 'capture', 'capture_continuous', 'capture_sequence', 'clock_mode', 'close', 'closed', 'color_effects', 'contrast', 'crop', 'digital_gain', 'drc_strength', 'exif_tags', 'exposure_compensation', 'exposure_mode', 'exposure_speed', 'flash_mode', 'frame', 'framerate', 'framerate_delta', 'hflip', 'image_denoise', 'image_effect', 'image_effect_params', 'iso', 'led', 'meter_mode', 'overlays', 'preview', 'preview_alpha', 'preview_fullscreen', 'preview_layer', 'preview_window', 'previewing', 'raw_format', 'record_sequence', 'recording', 'remove_overlay', 'request_key_frame', 'resolution', 'rotation', 'saturation', 'sensor_mode', 'sharpness', 'shutter_speed', 'split_recording', 'start_preview', 'start_recording', 'still_stats', 'stop_preview', 'stop_recording', 'timestamp', 'vflip', 'video_denoise', 'video_stabilization', 'wait_recording', 'zoom' ] |
camera.py sourc […]
https://picamera.readthedocs.io/en/release-1.12/recipes […]
http://scipy.org/install.html 前提是已经安装了pip, 没安装的看这篇文章. 已 […]
https://docs.scipy.org/doc/numpy-dev/user/quickstart.ht […]