# Coding=utf-8import turtle# Draw Pentagram def Drawstar (x): Turtle.begin_fill () for I in range (5): Turtle.forward (x ) Turtle.right (144) Turtle.end_fill () # transfer position def goTo (x, y): turtle.up () Turtle.goto (x, y) Turtle.down () Turtle.setup (864, 576) Turtle.bgcolor ("Red") Turtle.color ("Yellow") Turtle.fillcolor ("Yellow") Turtle.hideturtle () GoTo ( -380, X) Turtle.showturtle () Drawstar () for I in range (4): x = 1 If i in [0, 3]:
1.numpy.floor (a)Returns the smallest integer greater than the elementNP. Array([-1.7-1.5-0.20.21.51.7 2.0])NP. Floor(a)array ([ -2., -2., -1., 0., 1., 1., 2.]) 2.np.linspace (0,20,100)Returns an array of 100 points from 0 to 203.hist,bin_edges=np.histogram (A, bins) Note that this function does not necessarily produce exactly the sum of all the hist added and is 1, because bins's group spacing is not necessarily 1. The sum is 1 only if the group spacing is 1.Here is a workaround for the
condition object to control the potential lock object.Wait () methodEquivalent to Cond_wait ()Notify_all ()Quite with Cond_broadcast ()Nofify ()Similar to the Notify_all () feature, but only wakes up a waiting thread, not allThreading. Semaphore ObjectSemaphore, which is the count lock. When creating an object, you can pass an integer as the upper limit of the count (Sema = threading. Semaphore (5)).It is similar to lock and has two methods for lock.Threading. Event ObjectWith threading. The co
#!/usr/bin/env Python3#-*-coding:utf-8-*-#lists the file size and creation date and file name of the current directory, equivalent to the ls-l command fromDatetimeImportdatetimeImportospwd= Os.path.abspath ('.')Print('Size last Modified Name')Print('------------------------------------------------------------') forFinchOs.listdir (PWD): F_size=os.path.getsize (f)ifF_size > 1024: K_size= Round (f_size/1024, 1) F_size= str (k_size) +'K' ifK_size > 1024: M_size= Round (k_size/1024, 1) F_size
raywenderlich.com
Github objective-c Style guide-style Guide Coding Conventions for OBJECTIVE-C projects
OBJECTIVE-C Coding Convention and best practices-gist with Coding conventions
Good websitesnews, Blogs and Feeds
BGR
Imore
Lifehacker
ICode Blog
Nshipster
Objc.io
Asciiwwdc
Components and Packages
Cocoa Controls
Cocoa Pods
Forums and discuss lists
IPhone Dev SDK Forum
"IOS" on StackOverflow
Tutorials and
+ + standard library encapsulates a buffer class streambuf for input and output stream objects using // per standard C + + The input and output stream object contains a pointer to Streambuf Basic_streambuf mystrbuf; // .... }; member functions include:1. Status Tag function:* BOOL Good () const; Check if the stream status is good* BOOL EOF () const; Check whether the stream status bit is Eof,eofbit bit marked* BOOL Fail () c
During this time, the company has new projects to be developed, so the road to learning the enterprise database is a little delayed. Today, we will continue with the previous article. In the previous article, I introduced the basic information and usage of the built-in matching rule (matching rule) of the Enterprise Library, but there are still two matching rules in the policyinjection module, which are not
Due to the data volume and IO efficiency factors, many projects to the data-supported database will take the form of a library. One problem that needs to be resolved after using the sub-Library is the generation of primary keys. Primary keys between multiple tables cannot be supported with the database itself, since primary keys generated between tables are duplicated. So there is another way to get the pri
learning with Scikit-learnBooks:
"Ten minutes to Pandas" Chinese translation version: http://www.cnblogs.com/chaosimple/p/4153083.html
Founder of Pandas: Data analysis using Python (watercress) (recommend)
The collection of textbooks: Scipy lecture Notes (very good writing!) Regret missing Pandas)
Improve yourself: machine learning combat (watercress)
Video:
NumPy Getting
policy;In addition allocator under the engineering LIBCMT, only contains Allocator.gyp and prep_libc.py, wherein ALLOCATOR.GYP has been introduced, PREP_LIBC used in the production of target documents, The interfaces used by the system to remove the operating memory allocations before the connection such as malloc, free, realloc, new, delete, NEW2, etc., make it possible for the user to use the generated library LIBCMT.lib in other projects, using th
MonoTouch is a cross-platform solution for iOS development using the C # language. It supports iPhone/iPad development and currently supports the latest iOS 6 version.
Official Address: http://xamarin.com/
Github Sample: https://github.com/xamarin/monotouch-samples
App: http://xamarin.com/apps/all
MonoTouch can use the C # language for iOS development, which means that it can be easily used for iOS development as a. Net programmer. Of course, understanding the objective-c syntax is also helpful
Third-party class library learning notes: CustomShapeImageView custom shape ImageView, custom imageview
A third-party class library that came out two years ago. It has multiple shapes, not limited to circular ImageView, and is required for project development.
Github: https://github.com/MostafaGazar/CustomShapeImageView
1. First, there is a third-party class
to burn the Library to the specified space. The third is to first download the font file
Compile with the main program, define the font library to the specified space, burn it once, and then remove the font file from the main program
In the future, the program compilation and burning will only compile and burn the main program (this can speed up compilation and burning)
Note that the requirement space of t
Original address: SEAJS study notes the use of 2–SEAJS Building libraryI think learning new things is not to use it is enough, will use just represent you understand, understand, two does not mean that you go deep, mourn the essence of it.So the continuous learning will be endless.Recently in learning Seajs and ANGUALRJS instructions and services, feel angularjs
+idx: This is a graphic caption, can only be converted software with subtitles, large volume. 3, the title: Online less, more special effects than SRT. External subtitles Some basic notes: When using external subtitles, to ensure that the subtitle files and video files are placed in the same folder, and to ensure that the same file name, but do not modify the suffix and identification (common logo has CHS, GB, CHT, Big5, eng five kinds, where CHS and GB represent Simplified Chinese, cht and Big5
') -Plt.plot (x2,y,linestyle='-', label='Linear') +Plt.plot (X2,y2,'-', lw=2,label='Cubic') - plt.legend () +Plt.show ()Summary:For this book ("NumPy Study Guide") learning to this is over, because NumPy for the special status of Python, for her familiarity with the learning process will inevitably accompany my remaining life is quite a long part, so there is no sadness, but the new pit is ready, ready to c
Enterprise Library. net Framework 3.5-entlib v4.1 is the patterns Practices Group. net Framework 3.5 is used to develop a set of Enterprise libraries. The latest version is v4.1, which includes 9 Application blocks, including data access application blocks and Exception Handling application blocks) validation Application Block is very helpful and practical for enterprise application development.
Http://blog.entlib.com/EntLib/archive/2009/03/30/enterp
C ++ standard template library and Data Structure Learning
STL (Standard Template Library) is an industrial and efficient C ++ Library. It is contained in the C ++ Standard Library and is a revolutionary part of the ANSI/iso c ++ Standard. This
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.