With this article, worry about not having suitable data for programming exercises? Do it in a second!

Various Faker in python fill your data gaps

Faker.choose() ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']
Faker.values() [22, 148, 43, 81, 143, 60, 93]
Faker.country # Random English country list [‘China’, ‘Canada’, ‘Brazil’, ‘Russia’, ‘United States’, ‘Africa’, ‘Germany’]
Faker.cars # Random list of various Chinese car brands
Faker.visual_color # random color list
Faker.days_attrs #'number days' string list
Faker.clock # List of time strings
Faker.dogs # Random list of various dogs
Faker.guangdong_city # Fixed list of the following 7 cities in Guangdong Province
Faker.img_path(r'C:\abc.jpg') # Return the image path
Faker.week_en # Monday to Sunday in English

Guess you like

Origin blog.csdn.net/XRTONY/article/details/114896468