Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
jackfrued
GitHub Repository: jackfrued/Python-100-Days
Path: blob/master/公开课/第06次公开课-算法入门系列2-在水一方/code/example05.py
3076 views
1
size = 25
2
3
for i in range(size):
4
for j in range(size):
5
if i % 2 == 1 or j % 2 == 1:
6
print('■', end='')
7
else:
8
print('□', end='')
9
print()
10
11
12