1. # encoding: utf-8
  2. # module sys
  3. # from (built-in)
  4. # by generator 1.145
  5. """
  6. This module provides access to some objects used or maintained by the
  7. interpreter and to functions that interact strongly with the interpreter.
  8.  
  9. Dynamic objects:
  10.  
  11. argv -- command line arguments; argv[0] is the script pathname if known
  12. path -- module search path; path[0] is the script directory, else ''
  13. modules -- dictionary of loaded modules
  14.  
  15. displayhook -- called to show results in an interactive session
  16. excepthook -- called to handle any uncaught exception other than SystemExit
  17. To customize printing in an interactive session or to install a custom
  18. top-level exception handler, assign other functions to replace these.
  19.  
  20. stdin -- standard input file object; used by input()
  21. stdout -- standard output file object; used by print()
  22. stderr -- standard error object; used for error messages
  23. By assigning other file objects (or objects that behave like files)
  24. to these, it is possible to redirect all of the interpreter's I/O.
  25.  
  26. last_type -- type of last uncaught exception
  27. last_value -- value of last uncaught exception
  28. last_traceback -- traceback of last uncaught exception
  29. These three are only available in an interactive session after a
  30. traceback has been printed.
  31.  
  32. Static objects:
  33.  
  34. builtin_module_names -- tuple of module names built into this interpreter
  35. copyright -- copyright notice pertaining to this interpreter
  36. exec_prefix -- prefix used to find the machine-specific Python library
  37. executable -- absolute path of the executable binary of the Python interpreter
  38. float_info -- a struct sequence with information about the float implementation.
  39. float_repr_style -- string indicating the style of repr() output for floats
  40. hash_info -- a struct sequence with information about the hash algorithm.
  41. hexversion -- version information encoded as a single integer
  42. implementation -- Python implementation information.
  43. int_info -- a struct sequence with information about the int implementation.
  44. maxsize -- the largest supported length of containers.
  45. maxunicode -- the value of the largest Unicode code point
  46. platform -- platform identifier
  47. prefix -- prefix used to find the Python library
  48. thread_info -- a struct sequence with information about the thread implementation.
  49. version -- the version of this interpreter as a string
  50. version_info -- version information as a named tuple
  51. dllhandle -- [Windows only] integer handle of the Python DLL
  52. winver -- [Windows only] version number of the Python DLL
  53. _enablelegacywindowsfsencoding -- [Windows only]
  54. __stdin__ -- the original stdin; don't touch!
  55. __stdout__ -- the original stdout; don't touch!
  56. __stderr__ -- the original stderr; don't touch!
  57. __displayhook__ -- the original displayhook; don't touch!
  58. __excepthook__ -- the original excepthook; don't touch!
  59.  
  60. Functions:
  61.  
  62. displayhook() -- print an object to the screen, and save it in builtins._
  63. excepthook() -- print an exception and its traceback to sys.stderr
  64. exc_info() -- return thread-safe information about the current exception
  65. exit() -- exit the interpreter by raising SystemExit
  66. getdlopenflags() -- returns flags to be used for dlopen() calls
  67. getprofile() -- get the global profiling function
  68. getrefcount() -- return the reference count for an object (plus one :-)
  69. getrecursionlimit() -- return the max recursion depth for the interpreter
  70. getsizeof() -- return the size of an object in bytes
  71. gettrace() -- get the global debug tracing function
  72. setcheckinterval() -- control how often the interpreter checks for events
  73. setdlopenflags() -- set the flags to be used for dlopen() calls
  74. setprofile() -- set the global profiling function
  75. setrecursionlimit() -- set the max recursion depth for the interpreter
  76. settrace() -- set the global debug tracing function
  77. """
  78. # no imports
  79.  
  80. # Variables with simple values
  81.  
  82. api_version = 1013
  83.  
  84. base_exec_prefix = 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36'
  85.  
  86. base_prefix = 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36'
  87.  
  88. byteorder = 'little'
  89.  
  90. copyright = 'Copyright (c) 2001-2017 Python Software Foundation.\nAll Rights Reserved.\n\nCopyright (c) 2000 BeOpen.com.\nAll Rights Reserved.\n\nCopyright (c) 1995-2001 Corporation for National Research Initiatives.\nAll Rights Reserved.\n\nCopyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\nAll Rights Reserved.'
  91.  
  92. dllhandle = 1675624448
  93.  
  94. dont_write_bytecode = True
  95.  
  96. executable = 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36\\python.exe'
  97.  
  98. exec_prefix = 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36'
  99.  
  100. float_repr_style = 'short'
  101.  
  102. hexversion = 50725872
  103.  
  104. maxsize = 9223372036854775807
  105. maxunicode = 1114111
  106.  
  107. platform = 'win32'
  108.  
  109. prefix = 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36'
  110.  
  111. version = '3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]'
  112.  
  113. winver = '3.6'
  114.  
  115. _home = None
  116.  
  117. # functions
  118.  
  119. def callstats(): # real signature unknown; restored from __doc__
  120. """
  121. callstats() -> tuple of integers
  122.  
  123. Return a tuple of function call statistics, if CALL_PROFILE was defined
  124. when Python was built. Otherwise, return None.
  125.  
  126. When enabled, this function returns detailed, implementation-specific
  127. details about the number of function calls executed. The return value is
  128. a 11-tuple where the entries in the tuple are counts of:
  129. 0. all function calls
  130. 1. calls to PyFunction_Type objects
  131. 2. PyFunction calls that do not create an argument tuple
  132. 3. PyFunction calls that do not create an argument tuple
  133. and bypass PyEval_EvalCodeEx()
  134. 4. PyMethod calls
  135. 5. PyMethod calls on bound methods
  136. 6. PyType calls
  137. 7. PyCFunction calls
  138. 8. generator calls
  139. 9. All other calls
  140. 10. Number of stack pops performed by call_function()
  141. """
  142. return ()
  143.  
  144. def call_tracing(func, args): # real signature unknown; restored from __doc__
  145. """
  146. call_tracing(func, args) -> object
  147.  
  148. Call func(*args), while tracing is enabled. The tracing state is
  149. saved, and restored afterwards. This is intended to be called from
  150. a debugger from a checkpoint, to recursively debug some other code.
  151. """
  152. return object()
  153.  
  154. def displayhook(p_object): # real signature unknown; restored from __doc__
  155. """
  156. displayhook(object) -> None
  157.  
  158. Print an object to sys.stdout and also save it in builtins._
  159. """
  160. pass
  161.  
  162. def excepthook(exctype, value, traceback): # real signature unknown; restored from __doc__
  163. """
  164. excepthook(exctype, value, traceback) -> None
  165.  
  166. Handle an exception by displaying it with a traceback on sys.stderr.
  167. """
  168. pass
  169.  
  170. def exc_info(): # real signature unknown; restored from __doc__
  171. """
  172. exc_info() -> (type, value, traceback)
  173.  
  174. Return information about the most recent exception caught by an except
  175. clause in the current stack frame or in an older stack frame.
  176. """
  177. pass
  178.  
  179. def exit(status=None): # real signature unknown; restored from __doc__
  180. """
  181. exit([status])
  182.  
  183. Exit the interpreter by raising SystemExit(status).
  184. If the status is omitted or None, it defaults to zero (i.e., success).
  185. If the status is an integer, it will be used as the system exit status.
  186. If it is another kind of object, it will be printed and the system
  187. exit status will be one (i.e., failure).
  188. """
  189. pass
  190.  
  191. def getallocatedblocks(): # real signature unknown; restored from __doc__
  192. """
  193. getallocatedblocks() -> integer
  194.  
  195. Return the number of memory blocks currently allocated, regardless of their
  196. size.
  197. """
  198. return 0
  199.  
  200. def getcheckinterval(): # real signature unknown; restored from __doc__
  201. """ getcheckinterval() -> current check interval; see setcheckinterval(). """
  202. pass
  203.  
  204. def getdefaultencoding(): # real signature unknown; restored from __doc__
  205. """
  206. getdefaultencoding() -> string
  207.  
  208. Return the current default string encoding used by the Unicode
  209. implementation.
  210. """
  211. return ""
  212.  
  213. def getfilesystemencodeerrors(): # real signature unknown; restored from __doc__
  214. """
  215. getfilesystemencodeerrors() -> string
  216.  
  217. Return the error mode used to convert Unicode filenames in
  218. operating system filenames.
  219. """
  220. return ""
  221.  
  222. def getfilesystemencoding(): # real signature unknown; restored from __doc__
  223. """
  224. getfilesystemencoding() -> string
  225.  
  226. Return the encoding used to convert Unicode filenames in
  227. operating system filenames.
  228. """
  229. return ""
  230.  
  231. def getprofile(): # real signature unknown; restored from __doc__
  232. """
  233. getprofile()
  234.  
  235. Return the profiling function set with sys.setprofile.
  236. See the profiler chapter in the library manual.
  237. """
  238. pass
  239.  
  240. def getrecursionlimit(): # real signature unknown; restored from __doc__
  241. """
  242. getrecursionlimit()
  243.  
  244. Return the current value of the recursion limit, the maximum depth
  245. of the Python interpreter stack. This limit prevents infinite
  246. recursion from causing an overflow of the C stack and crashing Python.
  247. """
  248. pass
  249.  
  250. def getrefcount(p_object): # real signature unknown; restored from __doc__
  251. """
  252. getrefcount(object) -> integer
  253.  
  254. Return the reference count of object. The count returned is generally
  255. one higher than you might expect, because it includes the (temporary)
  256. reference as an argument to getrefcount().
  257. """
  258. return 0
  259.  
  260. def getsizeof(p_object, default): # real signature unknown; restored from __doc__
  261. """
  262. getsizeof(object, default) -> int
  263.  
  264. Return the size of object in bytes.
  265. """
  266. return 0
  267.  
  268. def getswitchinterval(): # real signature unknown; restored from __doc__
  269. """ getswitchinterval() -> current thread switch interval; see setswitchinterval(). """
  270. pass
  271.  
  272. def gettrace(): # real signature unknown; restored from __doc__
  273. """
  274. gettrace()
  275.  
  276. Return the global debug tracing function set with sys.settrace.
  277. See the debugger chapter in the library manual.
  278. """
  279. pass
  280.  
  281. def getwindowsversion(): # real signature unknown; restored from __doc__
  282. """
  283. getwindowsversion()
  284.  
  285. Return information about the running version of Windows as a named tuple.
  286. The members are named: major, minor, build, platform, service_pack,
  287. service_pack_major, service_pack_minor, suite_mask, and product_type. For
  288. backward compatibility, only the first 5 items are available by indexing.
  289. All elements are numbers, except service_pack and platform_type which are
  290. strings, and platform_version which is a 3-tuple. Platform is always 2.
  291. Product_type may be 1 for a workstation, 2 for a domain controller, 3 for a
  292. server. Platform_version is a 3-tuple containing a version number that is
  293. intended for identifying the OS rather than feature detection.
  294. """
  295. pass
  296.  
  297. def get_asyncgen_hooks(): # real signature unknown; restored from __doc__
  298. """
  299. get_asyncgen_hooks()
  300.  
  301. Return a namedtuple of installed asynchronous generators hooks (firstiter, finalizer).
  302. """
  303. pass
  304.  
  305. def get_coroutine_wrapper(): # real signature unknown; restored from __doc__
  306. """
  307. get_coroutine_wrapper()
  308.  
  309. Return the wrapper for coroutine objects set by sys.set_coroutine_wrapper.
  310. """
  311. pass
  312.  
  313. def intern(string): # real signature unknown; restored from __doc__
  314. """
  315. intern(string) -> string
  316.  
  317. ``Intern'' the given string. This enters the string in the (global)
  318. table of interned strings whose purpose is to speed up dictionary lookups.
  319. Return the string itself or the previously interned string object with the
  320. same value.
  321. """
  322. return ""
  323.  
  324. def is_finalizing(): # real signature unknown; restored from __doc__
  325. """
  326. is_finalizing()
  327. Return True if Python is exiting.
  328. """
  329. pass
  330.  
  331. def setcheckinterval(n): # real signature unknown; restored from __doc__
  332. """
  333. setcheckinterval(n)
  334.  
  335. Tell the Python interpreter to check for asynchronous events every
  336. n instructions. This also affects how often thread switches occur.
  337. """
  338. pass
  339.  
  340. def setprofile(function): # real signature unknown; restored from __doc__
  341. """
  342. setprofile(function)
  343.  
  344. Set the profiling function. It will be called on each function call
  345. and return. See the profiler chapter in the library manual.
  346. """
  347. pass
  348.  
  349. def setrecursionlimit(n): # real signature unknown; restored from __doc__
  350. """
  351. setrecursionlimit(n)
  352.  
  353. Set the maximum depth of the Python interpreter stack to n. This
  354. limit prevents infinite recursion from causing an overflow of the C
  355. stack and crashing Python. The highest possible limit is platform-
  356. dependent.
  357. """
  358. pass
  359.  
  360. def setswitchinterval(n): # real signature unknown; restored from __doc__
  361. """
  362. setswitchinterval(n)
  363.  
  364. Set the ideal thread switching delay inside the Python interpreter
  365. The actual frequency of switching threads can be lower if the
  366. interpreter executes long sequences of uninterruptible code
  367. (this is implementation-specific and workload-dependent).
  368.  
  369. The parameter must represent the desired switching delay in seconds
  370. A typical value is 0.005 (5 milliseconds).
  371. """
  372. pass
  373.  
  374. def settrace(function): # real signature unknown; restored from __doc__
  375. """
  376. settrace(function)
  377.  
  378. Set the global debug tracing function. It will be called on each
  379. function call. See the debugger chapter in the library manual.
  380. """
  381. pass
  382.  
  383. def set_asyncgen_hooks(*args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  384. """
  385. set_asyncgen_hooks(*, firstiter=None, finalizer=None)
  386.  
  387. Set a finalizer for async generators objects.
  388. """
  389. pass
  390.  
  391. def set_coroutine_wrapper(wrapper): # real signature unknown; restored from __doc__
  392. """
  393. set_coroutine_wrapper(wrapper)
  394.  
  395. Set a wrapper for coroutine objects.
  396. """
  397. pass
  398.  
  399. def _clear_type_cache(): # real signature unknown; restored from __doc__
  400. """
  401. _clear_type_cache() -> None
  402. Clear the internal type lookup cache.
  403. """
  404. pass
  405.  
  406. def _current_frames(): # real signature unknown; restored from __doc__
  407. """
  408. _current_frames() -> dictionary
  409.  
  410. Return a dictionary mapping each current thread T's thread id to T's
  411. current stack frame.
  412.  
  413. This function should be used for specialized purposes only.
  414. """
  415. return {}
  416.  
  417. def _debugmallocstats(): # real signature unknown; restored from __doc__
  418. """
  419. _debugmallocstats()
  420.  
  421. Print summary info to stderr about the state of
  422. pymalloc's structures.
  423.  
  424. In Py_DEBUG mode, also perform some expensive internal consistency
  425. checks.
  426. """
  427. pass
  428.  
  429. def _enablelegacywindowsfsencoding(): # real signature unknown; restored from __doc__
  430. """
  431. _enablelegacywindowsfsencoding()
  432.  
  433. Changes the default filesystem encoding to mbcs:replace for consistency
  434. with earlier versions of Python. See PEP 529 for more information.
  435.  
  436. This is equivalent to defining the PYTHONLEGACYWINDOWSFSENCODING
  437. environment variable before launching Python.
  438. """
  439. pass
  440.  
  441. def _getframe(depth=None): # real signature unknown; restored from __doc__
  442. """
  443. _getframe([depth]) -> frameobject
  444.  
  445. Return a frame object from the call stack. If optional integer depth is
  446. given, return the frame object that many calls below the top of the stack.
  447. If that is deeper than the call stack, ValueError is raised. The default
  448. for depth is zero, returning the frame at the top of the call stack.
  449.  
  450. This function should be used for internal and specialized
  451. purposes only.
  452. """
  453. pass
  454.  
  455. def __displayhook__(*args, **kwargs): # real signature unknown
  456. """
  457. displayhook(object) -> None
  458.  
  459. Print an object to sys.stdout and also save it in builtins._
  460. """
  461. pass
  462.  
  463. def __excepthook__(*args, **kwargs): # real signature unknown
  464. """
  465. excepthook(exctype, value, traceback) -> None
  466.  
  467. Handle an exception by displaying it with a traceback on sys.stderr.
  468. """
  469. pass
  470.  
  471. def __interactivehook__(): # reliably restored by inspect
  472. # no doc
  473. pass
  474.  
  475. # classes
  476.  
  477. class __loader__(object):
  478. """
  479. Meta path import for built-in modules.
  480.  
  481. All methods are either class or static methods to avoid the need to
  482. instantiate the class.
  483. """
  484. @classmethod
  485. def create_module(cls, *args, **kwargs): # real signature unknown
  486. """ Create a built-in module """
  487. pass
  488.  
  489. @classmethod
  490. def exec_module(cls, *args, **kwargs): # real signature unknown
  491. """ Exec a built-in module """
  492. pass
  493.  
  494. @classmethod
  495. def find_module(cls, *args, **kwargs): # real signature unknown
  496. """
  497. Find the built-in module.
  498.  
  499. If 'path' is ever specified then the search is considered a failure.
  500.  
  501. This method is deprecated. Use find_spec() instead.
  502. """
  503. pass
  504.  
  505. @classmethod
  506. def find_spec(cls, *args, **kwargs): # real signature unknown
  507. pass
  508.  
  509. @classmethod
  510. def get_code(cls, *args, **kwargs): # real signature unknown
  511. """ Return None as built-in modules do not have code objects. """
  512. pass
  513.  
  514. @classmethod
  515. def get_source(cls, *args, **kwargs): # real signature unknown
  516. """ Return None as built-in modules do not have source code. """
  517. pass
  518.  
  519. @classmethod
  520. def is_package(cls, *args, **kwargs): # real signature unknown
  521. """ Return False as built-in modules are never packages. """
  522. pass
  523.  
  524. @classmethod
  525. def load_module(cls, *args, **kwargs): # real signature unknown
  526. """
  527. Load the specified module into sys.modules and return it.
  528.  
  529. This method is deprecated. Use loader.exec_module instead.
  530. """
  531. pass
  532.  
  533. def module_repr(module): # reliably restored by inspect
  534. """
  535. Return repr for the module.
  536.  
  537. The method is deprecated. The import machinery does the job itself.
  538. """
  539. pass
  540.  
  541. def __init__(self, *args, **kwargs): # real signature unknown
  542. pass
  543.  
  544. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  545. """list of weak references to the object (if defined)"""
  546.  
  547. __dict__ = None # (!) real value is ''
  548.  
  549. # variables with complex values
  550.  
  551. argv = [] # real value of type <class 'list'> skipped
  552.  
  553. builtin_module_names = () # real value of type <class 'tuple'> skipped
  554.  
  555. flags = (
  556. 0,
  557. 0,
  558. 0,
  559. 0,
  560. 1,
  561. 0,
  562. 0,
  563. 0,
  564. 0,
  565. 0,
  566. 0,
  567. 1,
  568. 0,
  569. )
  570.  
  571. float_info = (
  572. 1.7976931348623157e+308,
  573. 1024,
  574. 308,
  575. 2.2250738585072014e-308,
  576. -1021,
  577. -307,
  578. 15,
  579. 53,
  580. 2.220446049250313e-16,
  581. 2,
  582. 1,
  583. )
  584.  
  585. hash_info = (
  586. 64,
  587. 2305843009213693951,
  588. 314159,
  589. 0,
  590. 1000003,
  591. 'siphash24',
  592. 64,
  593. 128,
  594. 0,
  595. )
  596.  
  597. implementation = None # (!) real value is ''
  598.  
  599. int_info = (
  600. 30,
  601. 4,
  602. )
  603.  
  604. meta_path = [
  605. __loader__,
  606. None, # (!) real value is ''
  607. None, # (!) real value is ''
  608. ]
  609.  
  610. modules = {} # real value of type <class 'dict'> skipped
  611.  
  612. path = [
  613. 'C:\\Program Files\\JetBrains\\PyCharm 2017.2.4\\helpers',
  614. 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36\\python36.zip',
  615. 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36\\DLLs',
  616. 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36\\lib',
  617. 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36',
  618. 'C:\\Users\\limugen\\AppData\\Local\\Programs\\Python\\Python36\\lib\\site-packages',
  619. ]
  620.  
  621. path_hooks = [
  622. None, # (!) real value is ''
  623. None, # (!) real value is ''
  624. ]
  625.  
  626. path_importer_cache = {} # real value of type <class 'dict'> skipped
  627.  
  628. stderr = None # (!) real value is ''
  629.  
  630. stdin = None # (!) forward: __stdin__, real value is ''
  631.  
  632. stdout = None # (!) forward: __stdout__, real value is ''
  633.  
  634. thread_info = (
  635. 'nt',
  636. None,
  637. None,
  638. )
  639.  
  640. version_info = (
  641. 3,
  642. 6,
  643. 3,
  644. 'final',
  645. 0,
  646. )
  647.  
  648. warnoptions = []
  649.  
  650. _git = (
  651. 'CPython',
  652. 'v3.6.3',
  653. '2c5fed8',
  654. )
  655.  
  656. _xoptions = {}
  657.  
  658. __spec__ = None # (!) real value is ''
  659.  
  660. __stderr__ = stderr
  661.  
  662. __stdin__ = None # (!) real value is ''
  663.  
  664. __stdout__ = None # (!) real value is ''
  665.  
  666. # intermittent names
  667. exc_value = Exception()
  668. exc_traceback=None

python:sys

python模块:sys的更多相关文章

  1. python模块(sys)

    SYS模块 sys.argv # 命令行参数List,第一个元素是程序本身路径 sys.exit(n) # 退出程序,正常退出时exit(0) sys.version # 获取Python解释程序的版 ...

  2. Python模块-sys模块

    sys.version        获取Python解释程序的版本信息 >>> sys.version '2.7.12 (default, Dec 4 2017, 14:50:18 ...

  3. python模块sys

    #!/bin/env python #-*- encoding=utf8 -*- import sys if __name__=="__main__": # 在解释器启动后, ar ...

  4. python模块----sys模块 (系统相关的参数和函数)

    pprint 模块:它给我们提供了一个方法 pprint() 该方法可以用来对打印的数据做简单的格式化 sys模块+pprint模块 标准库网址(sys):https://docs.python.or ...

  5. python 模块之-sys

    python 模块 sys import sys sys.argv       # 参数,第一个参数是脚本的文件明,自定义参数为数组的第二个   sys.argv[1] sys.version   # ...

  6. Python常用模块sys,os,time,random功能与用法,新手备学。

    这篇文章主要介绍了Python常用模块sys,os,time,random功能与用法,结合实例形式分析了Python模块sys,os,time,random功能.原理.相关模块函数.使用技巧与操作注意 ...

  7. python之sys模块详解

    python之sys模块详解 sys模块功能多,我们这里介绍一些比较实用的功能,相信你会喜欢的,和我一起走进python的模块吧! sys模块的常见函数列表 sys.argv: 实现从程序外部向程序传 ...

  8. python学习笔记27(python中sys模块的使用)

    sys.argv           命令行参数List,第一个元素是程序本身路径 sys.modules.keys() 返回所有已经导入的模块列表 sys.exc_info()     获取当前正在 ...

  9. python之sys模块

    38.python的sys模块: 用于提供对Python解释器相关的操作: 1 2 3 4 5 6 7 8 9 sys.argv           命令行参数List,第一个元素是程序本身路径 sy ...

  10. Python模块 - os , sys.shutil

    os 模块是与操作系统交互的一个接口 os.getcwd() 获取当前工作目录,即当前python脚本工作的目录路径 os.chdir("dirname") 改变当前脚本工作目录: ...

随机推荐

  1. 用Jenkins自动化搭建测试环境-前奏

    用Jenkins自动化搭建测试环境-前奏 1.安装 参考及启动:https://www.cnblogs.com/Eric15/articles/9828062.html 2.插件 新手一般按推荐安装即 ...

  2. ScrollView定时器复用

    起始偏移量设置为一个宽度 [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(refreshPic) us ...

  3. MVC中的七层架构

    工厂模式的七层架构 1.创建Model,实现业务实体. 2.创建IDAL,实现接口. 3.创建DAL,实现接口里的方法. 4.创建DBUtility,数据库操作类5.创建DALFactory,抽象工程 ...

  4. Django 导入css文件,样式不起作用。Resource interpreted as Stylesheet but transferred with MIME type application/x-css

    笔者今天在模板中加载css文件时,发现 css样式能够下载再来却无法起作用,而且,图片.js都能够正常使用. 并且 浏览器提示: Resource interpreted as Stylesheet ...

  5. Python.tornado.2.tornado.options

    记录Tornado-4.0.2源码的阅读,学习,分析 options.py 1. imports 部分 1.1 __future__ from __future__ import absolute_i ...

  6. 在iOS 8及以后使用UIAlertController 等各种弹出警告通知

    原文转自:在iOS 8中使用UIAlertController 感谢作者分享,自我学习之用 iOS 8的新特性之一就是让接口更有适应性.更灵活,因此许多视图控制器的实现方式发生了巨大的变化.全新的UI ...

  7. python实现文件下载图片视频

    最近在学习爬虫,在爬取网站时很多时候是需要将图片或视频下载到本地 今天就来说说如何使用urllib将图片保存到本地 以下代码均为win7  python3.6.* 方法一(使用下载函数保存) from ...

  8. 多字节字符集与Unicode字符集

    在计算机中字符通常并不是保存为图像,每个字符都是使用一个编码来表示的,而每个字符究竟使用哪个编码代表,要取决于使用哪个字符集(charset). 多字节字符集: 在最初的时候,Internet上只有一 ...

  9. 201621123008 《Java程序设计》第八周学习总结

    1. 本周学习总结 2. 书面作业 1. ArrayList代码分析 1.1 解释ArrayList的contains源代码 源代码: public boolean contains(Object o ...

  10. hook api实现

    https://www.cnblogs.com/findumars/p/8734116.html https://blog.csdn.net/lonelyrains/article/details/2 ...